Fixes players not being immune to their own slime timestops

This commit is contained in:
YPO
2018-01-12 12:25:00 -07:00
parent e2edd31de6
commit ca688bc7cd
2 changed files with 5 additions and 6 deletions

View File

@@ -18,12 +18,12 @@
/obj/effect/timestop/Initialize(mapload, radius, time, list/immune_atoms, start = TRUE) //Immune atoms assoc list atom = TRUE /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)) if(!isnull(time))
duration = time duration = time
if(!isnull(radius)) if(!isnull(radius))
freezerange = radius freezerange = radius
for(var/A in immune_atoms)
immune[A] = TRUE
for(var/mob/living/L in GLOB.player_list) 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 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 immune[L] = TRUE

View File

@@ -552,10 +552,9 @@
required_other = 1 required_other = 1
/datum/chemical_reaction/slime/slimestop/on_reaction(datum/reagents/holder) /datum/chemical_reaction/slime/slimestop/on_reaction(datum/reagents/holder)
var/obj/effect/timestop/T = new /obj/effect/timestop var/turf/T = get_turf(holder.my_atom)
T.forceMove(get_turf(holder.my_atom)) var/list/M = list(get_mob_by_key(holder.my_atom.fingerprintslast))
T.immune += get_mob_by_key(holder.my_atom.fingerprintslast) new /obj/effect/timestop(T, null, null, M)
T.timestop()
..() ..()
/datum/chemical_reaction/slime/slimecamera /datum/chemical_reaction/slime/slimecamera