ix issue with changeling internals not persisting after transformation (#23519)

Ensure that changeling internals are retained after transformation to prevent them from being disabled, especially on Lavaland.

Co-authored-by: Pierre-Louis <hernandezpierrelouis@protonmail.com>
This commit is contained in:
Pierre-Louis
2023-12-16 16:14:41 +00:00
committed by GitHub
co-authored by Pierre-Louis
parent 87d8da7b1e
commit 119b10d904
@@ -94,9 +94,12 @@
// Transform the target to the chosen dna. Used in transform.dm and tiny_prick.dm (handy for changes since it's the same thing done twice)
/datum/action/changeling/proc/transform_dna(mob/living/carbon/human/H, datum/dna/D)
var/internals_on = H.internal
if(!D)
return
var/changes_species = TRUE
if(H.dna.species.name == D.species.name)
changes_species = FALSE
H.change_dna(D, changes_species)
if(internals_on)
H.internal = internals_on