From 2b835e27e2b83db70d4970a6e926b3ecc68fb13c Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Tue, 16 Apr 2024 16:19:22 -0400 Subject: [PATCH] mods - mobs - fix stop mob attacking if player isnt seen when explode * the stop is only after double check , but must be after first also --- mods/mobs/api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index 35682a6..5a8a179 100644 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -2561,6 +2561,7 @@ function mob_class:do_states(dtime) --print(" ** stop attacking **", self.name, self.health, dist, self.view_range) self:stop_attack() end + self:stop_attack() return end