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
This commit is contained in:
mckaygerhard 2024-04-16 20:25:23 +00:00
parent 03b478fcdd
commit e80a4596d8

View File

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