fix: AI Eye movement runtimes (#26792)

This commit is contained in:
warriorstar-orion
2024-09-19 02:26:19 +00:00
committed by GitHub
parent 3998a763d8
commit 63855ede3c
2 changed files with 7 additions and 4 deletions
+3 -4
View File
@@ -129,10 +129,9 @@
/obj/structure/table/CanPass(atom/movable/mover, turf/target)
if(istype(mover,/obj/item/projectile))
return (check_cover(mover,target))
if(ismob(mover))
var/mob/living/M = mover
if(M.flying || (IS_HORIZONTAL(M) && HAS_TRAIT(M, TRAIT_CONTORTED_BODY)))
return TRUE
var/mob/living/living_mover = mover
if(istype(living_mover) && (living_mover.flying || (IS_HORIZONTAL(living_mover) && HAS_TRAIT(living_mover, TRAIT_CONTORTED_BODY))))
return TRUE
if(istype(mover) && mover.checkpass(PASSTABLE))
return TRUE
if(mover.throwing)