From d8adf520dce4733b1a6addc976b30817052a02f0 Mon Sep 17 00:00:00 2001 From: Gboster-0 <82319946+Gboster-0@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:49:14 +0200 Subject: [PATCH 1/2] repairs AI --- code/_core/datum/ai/ai_life.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/_core/datum/ai/ai_life.dm b/code/_core/datum/ai/ai_life.dm index 0b7f6a22d..5eb54b496 100644 --- a/code/_core/datum/ai/ai_life.dm +++ b/code/_core/datum/ai/ai_life.dm @@ -37,7 +37,7 @@ owner.resist() return TRUE - if(aggression > 0 && can_attack && objective_attack) + if(aggression > 0 && can_attack) if(!master_ai) //Find objectives only if you don't belong to a master. objective_ticks += tick_rate var/actual_objective_delay = get_objective_delay() @@ -229,4 +229,4 @@ set_path_node(null) set_path_astar(null) set_active(FALSE) - return TRUE \ No newline at end of file + return TRUE From 246f2402cb131f7dddd2964643fc0f094921fe15 Mon Sep 17 00:00:00 2001 From: Gboster-0 <82319946+Gboster-0@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:51:40 +0200 Subject: [PATCH 2/2] tiny fix, or not. Idk --- code/_core/datum/ai/ai_life.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_core/datum/ai/ai_life.dm b/code/_core/datum/ai/ai_life.dm index 5eb54b496..ea38aa4af 100644 --- a/code/_core/datum/ai/ai_life.dm +++ b/code/_core/datum/ai/ai_life.dm @@ -50,7 +50,7 @@ queue_find_new_objectives = TRUE frustration_attack = 0 - if(owner.attack_next <= world.time) + if(objective_attack && (owner.attack_next <= world.time)) handle_attacking() if(queue_find_new_objectives)