Skip to content

Commit

Permalink
Makes NPC's seek out players again (#700)
Browse files Browse the repository at this point in the history
* repairs AI

* tiny fix, or not. Idk
  • Loading branch information
Gboster-0 authored Aug 29, 2024
1 parent 9d384dc commit 2ae7913
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/_core/datum/ai/ai_life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down Expand Up @@ -229,4 +229,4 @@
set_path_node(null)
set_path_astar(null)
set_active(FALSE)
return TRUE
return TRUE

0 comments on commit 2ae7913

Please sign in to comment.