One more tweak to voremob things

They can skip the 8s anti-kite check
This commit is contained in:
Aronai Sieyes
2021-07-28 12:27:11 -04:00
parent 44268bd332
commit 6da3ce0832
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@
var/obj/belly/B = holder.loc
var/mob/living/L = B.owner
// Will return false if we decide to not do anything about it.
if(!react_to_attack(L))
if(!react_to_attack(L, ignore_timers = TRUE))
ai_log("handle_eaten() : Deciding to sleep AI.", AI_LOG_TRACE)
go_sleep()
+2 -2
View File
@@ -240,7 +240,7 @@
target_last_seen_turf = null
// Responds to a hostile action against its mob.
/datum/ai_holder/proc/react_to_attack(atom/movable/attacker)
/datum/ai_holder/proc/react_to_attack(atom/movable/attacker, ignore_timers = FALSE)
if(holder.stat) // We're dead.
ai_log("react_to_attack() : Was attacked by [attacker], but we are dead/unconscious.", AI_LOG_TRACE)
return FALSE
@@ -250,7 +250,7 @@
if(holder.IIsAlly(attacker)) // I'll overlook it THIS time...
ai_log("react_to_attack() : Was attacked by [attacker], but they were an ally.", AI_LOG_TRACE)
return FALSE
if(target && world.time < last_target_time + 8 SECONDS) // Already fighting someone. Switching every time we get hit would impact our combat performance.
if(target && !ignore_timers && (world.time < last_target_time + 8 SECONDS)) // Already fighting someone. Switching every time we get hit would impact our combat performance.
ai_log("react_to_attack() : Was attacked by [attacker], but we switched targets too recently to change.", AI_LOG_TRACE)
on_attacked(attacker)
return FALSE