Adds sanity check to Narsie pickcultist proc (#31937)
* Adds sanity check to Narsie pickcultist proc * claned up src * cleaned
This commit is contained in:
committed by
CitadelStationBot
parent
3e1c307e4e
commit
0a14bf3fd4
@@ -142,7 +142,7 @@
|
|||||||
|
|
||||||
for(var/mob/living/carbon/food in GLOB.living_mob_list) //we don't care about constructs or cult-Ians or whatever. cult-monkeys are fair game i guess
|
for(var/mob/living/carbon/food in GLOB.living_mob_list) //we don't care about constructs or cult-Ians or whatever. cult-monkeys are fair game i guess
|
||||||
var/turf/pos = get_turf(food)
|
var/turf/pos = get_turf(food)
|
||||||
if(pos.z != src.z)
|
if(!pos || (pos.z != z))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if(iscultist(food))
|
if(iscultist(food))
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
if(!ghost.client)
|
if(!ghost.client)
|
||||||
continue
|
continue
|
||||||
var/turf/pos = get_turf(ghost)
|
var/turf/pos = get_turf(ghost)
|
||||||
if(pos.z != src.z)
|
if(!pos || (pos.z != z))
|
||||||
continue
|
continue
|
||||||
cultists += ghost
|
cultists += ghost
|
||||||
if(cultists.len)
|
if(cultists.len)
|
||||||
|
|||||||
Reference in New Issue
Block a user