[MIRROR] bunch of misc fixes (#10084)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-07 07:23:35 -07:00
committed by GitHub
parent 08485074a9
commit 07017b04a7
17 changed files with 29 additions and 48 deletions

View File

@@ -171,7 +171,7 @@
/datum/ai_holder/proc/walk_to_target()
ai_log("walk_to_target() : Entering.", AI_LOG_DEBUG)
// Make sure we can still chase/attack them.
if(!target || !can_attack(target))
if(QDELETED(target) || !can_attack(target))
ai_log("walk_to_target() : Lost target.", AI_LOG_INFO)
lose_target()
return