mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-13 08:04:22 +01:00
Fix for mob spawners: take 2
Fixes away map mob spawners respawning their mobs when there's a player mob in view.
This commit is contained in:
@@ -456,8 +456,9 @@
|
||||
if(my_mob && my_mob.stat != DEAD)
|
||||
return //No need
|
||||
|
||||
if(LAZYLEN(loc.human_mobs(world.view)))
|
||||
return //I'll wait.
|
||||
for(var/mob/living/L in view(src,world.view))
|
||||
if(L.client)
|
||||
return //I'll wait.
|
||||
|
||||
if(prob(prob_spawn))
|
||||
prob_spawn -= prob_fall
|
||||
|
||||
Reference in New Issue
Block a user