Merge pull request #34372 from YPOQ/slimestopfix

Fixes players not being immune to their own slime timestops
This commit is contained in:
Leo
2018-01-15 01:35:39 -02:00
committed by CitadelStationBot
parent 969a8ac9ef
commit 4b56baf1a6
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
. = ..()
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