forked from VoxeLibre/VoxeLibre
Fix do_jump call in combat.lua
This commit is contained in:
parent
4909ef6ff7
commit
a3415647d4
|
@ -281,7 +281,7 @@ function mob_class:smart_mobs(s, p, dist, dtime)
|
||||||
-- will try again in 2 seconds
|
-- will try again in 2 seconds
|
||||||
self.path.stuck_timer = stuck_timeout - 2
|
self.path.stuck_timer = stuck_timeout - 2
|
||||||
elseif s.y < p1.y and (not self.fly) then
|
elseif s.y < p1.y and (not self.fly) then
|
||||||
do_jump(self) --add jump to pathfinding
|
self:do_jump() --add jump to pathfinding
|
||||||
self.path.following = true
|
self.path.following = true
|
||||||
-- Yay, I found path!
|
-- Yay, I found path!
|
||||||
-- TODO: Implement war_cry sound without being annoying
|
-- TODO: Implement war_cry sound without being annoying
|
||||||
|
|
Loading…
Reference in New Issue