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:
parent
03b478fcdd
commit
e80a4596d8
2
api.lua
2
api.lua
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user