Skip to content
Snippets Groups Projects
Commit 6ec6f0dc authored by DarkGod's avatar DarkGod
Browse files

Swift Shot and Bull Shot only lower cooldown when actually moving

parent f53fd4e6
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -225,6 +225,7 @@ newTalent{
return true
end,
callbackOnMove = function(self, t, moved, force, ox, oy)
if (self.x == ox and self.y == oy) or force then return end
local cooldown = self.talents_cd[t.id] or 0
if cooldown > 0 then
self.talents_cd[t.id] = math.max(cooldown - 1, 0)
......
......@@ -59,6 +59,7 @@ newTalent {
return self:combatTalentWeaponDamage(t, 0.4, 1.6)
end,
callbackOnMove = function(self, t, moved, force, ox, oy)
if (self.x == ox and self.y == oy) or force then return end
local cooldown = self.talents_cd[t.id] or 0
if cooldown > 0 then
self.talents_cd[t.id] = math.max(cooldown - 1, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment