Fix do_jump call in combat.lua

This commit is contained in:
cora 2022-11-12 00:30:18 +01:00
parent 4909ef6ff7
commit a3415647d4

View File

@ -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