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
+2 -2
View File
@@ -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