Merge pull request #14504 from Very-Soft/misc_fixes

Misc fixes
This commit is contained in:
Casey
2023-02-17 14:22:17 -05:00
committed by CHOMPStation2
parent ddedbf2a8c
commit b82736dc53
12 changed files with 62 additions and 27 deletions

View File

@@ -70,10 +70,10 @@
// Step 4, give us our selected target.
/datum/ai_holder/proc/give_target(new_target, urgent = FALSE)
ai_log("give_target() : Given '[new_target]', urgent=[urgent].", AI_LOG_TRACE)
if(target)
remove_target()
target = new_target
if(target != null)
@@ -282,7 +282,7 @@
// Checks to see if an atom attacked us lately
/datum/ai_holder/proc/check_attacker(var/atom/movable/A)
return (A in attackers)
return (A.name in attackers)
// We were attacked by this thing recently
/datum/ai_holder/proc/add_attacker(var/atom/movable/A)