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
main
mckaygerhard 2024-04-16 20:25:23 +00:00
parent 03b478fcdd
commit e80a4596d8
1 changed files with 2 additions and 0 deletions

View File

@ -2561,6 +2561,8 @@ function mob_class:do_states(dtime)
--print(" ** stop attacking **", self.name, self.health, dist, self.view_range)
self:stop_attack()
end
if not p then
self:stop_attack()
return
end