From cedc95538ded6ca0845f13e8ec2fdbf2b8c0c8ed Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 3 Apr 2017 22:15:55 +0200 Subject: Missed applyLinearImpulse in Hero --- not/Hero.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/not/Hero.lua b/not/Hero.lua index 1cb5e93..ec7f39f 100644 --- a/not/Hero.lua +++ b/not/Hero.lua @@ -386,7 +386,7 @@ function Hero:damage (direction) self:createEffect("hit") local x,y = self:getLinearVelocity() self:setLinearVelocity(x,0) - self.body:applyLinearImpulse((42+10*self.combo)*horizontal, (68+10*self.combo)*vertical + 15) + self:applyLinearImpulse((42+10*self.combo)*horizontal, (68+10*self.combo)*vertical + 15) self:setAnimation("damage") self.combo = math.min(27, self.combo + 1) self.punchcd = 0.08 + self.combo*0.006 -- cgit v1.1