Merge pull request #7350 from Citadel-Station-13/upstream-merge-38929
[MIRROR] Fixes animals trying to break map border
This commit is contained in:
@@ -369,7 +369,7 @@
|
||||
|
||||
/mob/living/simple_animal/hostile/proc/DestroyObjectsInDirection(direction)
|
||||
var/turf/T = get_step(targets_from, direction)
|
||||
if(T.Adjacent(targets_from))
|
||||
if(T && T.Adjacent(targets_from))
|
||||
if(CanSmashTurfs(T))
|
||||
T.attack_animal(src)
|
||||
for(var/obj/O in T)
|
||||
|
||||
Reference in New Issue
Block a user