mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
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:
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
|
||||
|
||||
Reference in New Issue
Block a user