mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 13:09:11 +01:00
One more tweak to voremob things
They can skip the 8s anti-kite check
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user