From 0b23981f1b4f204cfefdce4561d81c4390eb2495 Mon Sep 17 00:00:00 2001 From: KasparoVy Date: Sat, 19 Nov 2016 18:29:43 -0500 Subject: [PATCH] Fix. The spawnable DNA Injectors containing powers (XRay, etc.) will now activate/deactivate the powers correctly. --- code/game/objects/items/weapons/dna_injector.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/dna_injector.dm b/code/game/objects/items/weapons/dna_injector.dm index 69a4d78643e..45aabc2c073 100644 --- a/code/game/objects/items/weapons/dna_injector.dm +++ b/code/game/objects/items/weapons/dna_injector.dm @@ -72,6 +72,7 @@ spawn(0) //Some mutations have sleeps in them, like monkey if(!(NOCLONE in M.mutations) && !(H && (H.species.flags & NO_DNA))) // prevents drained people from having their DNA changed var/prev_ue = M.dna.unique_enzymes + var/mutflags = 0 // UI in syringe. if(buf.types & DNA2_BUF_UI) if(!block) //isolated block? @@ -88,12 +89,13 @@ M.dna.SetUIValue(block,src.GetValue()) M.UpdateAppearance() if(buf.types & DNA2_BUF_SE) + mutflags = MUTCHK_FORCED if(!block) //isolated block? M.dna.SE = buf.dna.SE.Copy() M.dna.UpdateSE() else M.dna.SetSEValue(block,src.GetValue()) - domutcheck(M, null, 0) + domutcheck(M, null, mutflags) M.update_mutations() if(H) H.sync_organ_dna(assimilate = 0, old_ue = prev_ue)