Skip to content
Snippets Groups Projects
Commit 36a394f7 authored by DarkGod's avatar DarkGod
Browse files

Giant Leap cooldown reduced, also removes all stun/daze/pin effects

Windtouched Speed now also reduces all cooldowns by 10%
parent b6a52238
No related branches found
No related tags found
No related merge requests found
...@@ -5813,6 +5813,7 @@ function _M:getTalentCooldown(t, base) ...@@ -5813,6 +5813,7 @@ function _M:getTalentCooldown(t, base)
if self.talent_cd_reduction[t.id] then cd = cd - self.talent_cd_reduction[t.id] end if self.talent_cd_reduction[t.id] then cd = cd - self.talent_cd_reduction[t.id] end
if self.talent_cd_reduction.all then cd = cd - self.talent_cd_reduction.all end if self.talent_cd_reduction.all then cd = cd - self.talent_cd_reduction.all end
if self.talent_cd_reduction.allpct then cd = cd - math.ceil(self.talent_cd_reduction.allpct * cd) end
local eff = self:hasEffect(self.EFF_BURNING_HEX) local eff = self:hasEffect(self.EFF_BURNING_HEX)
if eff and not self:attr("talent_reuse") then if eff and not self:attr("talent_reuse") then
......
...@@ -120,16 +120,18 @@ uberTalent{ ...@@ -120,16 +120,18 @@ uberTalent{
on_learn = function(self, t) on_learn = function(self, t)
self:attr("global_speed_add", 0.2) self:attr("global_speed_add", 0.2)
self:attr("avoid_pressure_traps", 1) self:attr("avoid_pressure_traps", 1)
self.talent_cd_reduction.allpct = (self.talent_cd_reduction.allpct or 0) + 0.1
self:recomputeGlobalSpeed() self:recomputeGlobalSpeed()
end, end,
on_unlearn = function(self, t) on_unlearn = function(self, t)
self:attr("global_speed_add", -0.2) self:attr("global_speed_add", -0.2)
self:attr("avoid_pressure_traps", -1) self:attr("avoid_pressure_traps", -1)
self.talent_cd_reduction.allpct = self.talent_cd_reduction.allpct - 0.1
self:recomputeGlobalSpeed() self:recomputeGlobalSpeed()
end, end,
info = function(self, t) info = function(self, t)
return ([[You are attuned with Nature, and she helps you in your fight against the arcane forces. return ([[You are attuned with Nature, and she helps you in your fight against the arcane forces.
You gain 20%% permanent global speed and do not trigger pressure traps.]]) You gain 20%% permanent global speed, 10%% cooldowns reduction and do not trigger pressure traps.]])
:format() :format()
end, end,
} }
...@@ -145,7 +147,7 @@ uberTalent{ ...@@ -145,7 +147,7 @@ uberTalent{
(self.damage_log.weapon.other and self.damage_log.weapon.other >= 50000) (self.damage_log.weapon.other and self.damage_log.weapon.other >= 50000)
) )
end} }, end} },
cooldown = 20, cooldown = 12,
radius = 1, radius = 1,
range = 10, range = 10,
is_melee = true, is_melee = true,
...@@ -173,6 +175,8 @@ uberTalent{ ...@@ -173,6 +175,8 @@ uberTalent{
self:setMoveAnim(ox, oy, 8, 5) self:setMoveAnim(ox, oy, 8, 5)
end end
self:removeEffectsFilter({subtype={stun=true, daze=true, pin=true, pinned=true, pinning=true}}, 50)
self:project(tg, self.x, self.y, function(px, py, tg, self) self:project(tg, self.x, self.y, function(px, py, tg, self)
local target = game.level.map(px, py, Map.ACTOR) local target = game.level.map(px, py, Map.ACTOR)
if target and target ~= self then if target and target ~= self then
...@@ -186,7 +190,8 @@ uberTalent{ ...@@ -186,7 +190,8 @@ uberTalent{
return true return true
end, end,
info = function(self, t) info = function(self, t)
return ([[You accurately jump to the target and deal 200%% weapon damage to all foes within radius 1 on impact as well as dazing them for 3 turns.]]) return ([[You accurately jump to the target and deal 200%% weapon damage to all foes within radius 1 on impact as well as dazing them for 3 turns.
When you jump you free yourself from any stun, daze and pinning effects.]])
:format() :format()
end, end,
} }
......
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