summaryrefslogtreecommitdiffhomepage
path: root/not
diff options
context:
space:
mode:
Diffstat (limited to 'not')
-rw-r--r--not/Hero.lua2
1 files changed, 1 insertions, 1 deletions
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