From ca688bc7cd5a6eba06e0bf0c9ccb76fd4ee437a3 Mon Sep 17 00:00:00 2001 From: YPO <30683121+YPOQ@users.noreply.github.com> Date: Fri, 12 Jan 2018 12:25:00 -0700 Subject: [PATCH] Fixes players not being immune to their own slime timestops --- code/modules/fields/timestop.dm | 4 ++-- code/modules/reagents/chemistry/recipes/slime_extracts.dm | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/code/modules/fields/timestop.dm b/code/modules/fields/timestop.dm index 4dfd7a3eb66..610dc8f081b 100644 --- a/code/modules/fields/timestop.dm +++ b/code/modules/fields/timestop.dm @@ -18,12 +18,12 @@ /obj/effect/timestop/Initialize(mapload, radius, time, list/immune_atoms, start = TRUE) //Immune atoms assoc list atom = TRUE . = ..() - if(immune_atoms) - immune = immune_atoms.Copy() if(!isnull(time)) duration = time if(!isnull(radius)) freezerange = radius + for(var/A in immune_atoms) + immune[A] = TRUE for(var/mob/living/L in GLOB.player_list) if(locate(/obj/effect/proc_holder/spell/aoe_turf/conjure/timestop) in L.mind.spell_list) //People who can stop time are immune to its effects immune[L] = TRUE diff --git a/code/modules/reagents/chemistry/recipes/slime_extracts.dm b/code/modules/reagents/chemistry/recipes/slime_extracts.dm index 9b04eb1b0ad..71297930ac1 100644 --- a/code/modules/reagents/chemistry/recipes/slime_extracts.dm +++ b/code/modules/reagents/chemistry/recipes/slime_extracts.dm @@ -552,10 +552,9 @@ required_other = 1 /datum/chemical_reaction/slime/slimestop/on_reaction(datum/reagents/holder) - var/obj/effect/timestop/T = new /obj/effect/timestop - T.forceMove(get_turf(holder.my_atom)) - T.immune += get_mob_by_key(holder.my_atom.fingerprintslast) - T.timestop() + var/turf/T = get_turf(holder.my_atom) + var/list/M = list(get_mob_by_key(holder.my_atom.fingerprintslast)) + new /obj/effect/timestop(T, null, null, M) ..() /datum/chemical_reaction/slime/slimecamera