summaryrefslogtreecommitdiffhomepage
path: root/not/Hero.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/Hero.lua')
-rw-r--r--not/Hero.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/not/Hero.lua b/not/Hero.lua
index 0406e51..cb4d249 100644
--- a/not/Hero.lua
+++ b/not/Hero.lua
@@ -113,8 +113,8 @@ function Hero:update (dt)
end
-- Trail spawner
- if self.combo > 100 then
- local dx, dy = love.math.random(-4, 4), love.math.random(-4, 4)
+ if self.combo > 100 and self.punchCooldown > 0 then
+ local dx, dy = love.math.random(-5, 5), love.math.random(-5, 5)
self:createEffect("trail", dx, dy)
end