fixed mobs getpos bug
This commit is contained in:
parent
655624e802
commit
ffddd28d8b
@ -126,7 +126,7 @@ function mobs:register_mob(name, def)
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
do_attack = function(self, player, dist)
|
do_attack = function(self, player, dist)
|
||||||
if is_too_near_spawn(self:getpos()) then return end
|
if is_too_near_spawn(self.object:getpos()) then return end
|
||||||
|
|
||||||
if self.state ~= "attack" then
|
if self.state ~= "attack" then
|
||||||
if math.random(0,100) < 90
|
if math.random(0,100) < 90
|
||||||
|
Loading…
Reference in New Issue
Block a user