[MIRROR] [NO GBP] Lil' fix to fishing hat PR. (#29148)

* [NO GBP] Lil' fix to fishing hat PR.

* Update flee_target.dm

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-08-11 11:26:11 +02:00
committed by GitHub
parent 98c902c349
commit b0d7b16eed
2 changed files with 2 additions and 4 deletions
@@ -10,7 +10,7 @@
/datum/ai_planning_subtree/flee_target/SelectBehaviors(datum/ai_controller/controller, seconds_per_tick)
. = ..()
var/atom/flee_from = controller.blackboard[target_key]
if (controller.blackboard[BB_BASIC_MOB_STOP_FLEEING] || QDELETED(flee_from))
if(!should_flee(controller, flee_from))
return
if(!should_flee(controller, flee_from))
return