Skip to content
Snippets Groups Projects
Commit c0e57d8d authored by Eric Wykoff's avatar Eric Wykoff
Browse files

Talents with fixed cooldowns won't affect the cooldowns of other talents with...

Talents with fixed cooldowns won't affect the cooldowns of other talents with fixed cooldowns (timeless, metaflow, invigorate, etc.)
parent 6c513293
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ newTalent{
tactical = { BUFF = 2 },
positive = 10,
negative = 10,
fixed_cooldown = true,
getDuration = function(self, t) return math.floor(self:combatTalentScale(t, 5, 9)) end,
getResistancePenetration = function(self, t) return self:combatLimit(self:getCun()*self:getTalentLevel(t), 100, 5, 0, 55, 500) end, -- Limit to <100%
getCooldownReduction = function(self, t) return math.floor(self:combatTalentScale(t, 2, 6)) end,
......
......@@ -211,6 +211,7 @@ newTalent{
require = racial_req4,
points = 5,
no_energy = true,
fixed_cooldown = true,
cooldown = function(self, t) return math.ceil(self:combatTalentLimit(t, 20, 47, 35)) end, -- Limit to >20
getEffectGood = function(self, t) return math.floor(self:combatTalentScale(t, 1, 5, "log")) end,
getEffectBad = function(self, t) return math.floor(self:combatTalentScale(t, 2.9, 10.01, "log")) end,
......@@ -253,7 +254,7 @@ newTalent{
local tids = {}
for tid, lev in pairs(self.talents) do
local t = self:getTalentFromId(tid)
if t and self.talents_cd[tid] then tids[#tids+1] = t end
if t and self.talents_cd[tid] and not t.fixed_cooldown then tids[#tids+1] = t end
end
while #tids > 0 do
local tt = rng.tableRemove(tids)
......@@ -267,7 +268,7 @@ newTalent{
end,
info = function(self, t)
return ([[The world grows old as you stand through the ages. To you, time is different.
Reduces the time remaining on detrimental effects by %d, cooling down talents by %d, and increases the time remaining on beneficial effects by %d (up to 2 times the current duration).]]):
Reduces the time remaining on detrimental effects by %d, most cooling down talents by %d, and increases the time remaining on beneficial effects by %d (up to 2 times the current duration).]]):
format(t.getEffectBad(self, t), t.getEffectGood(self, t), t.getEffectGood(self, t))
end,
}
......
......@@ -158,6 +158,7 @@ newTalent{
points = 5,
mana = 70,
cooldown = 50,
fixed_cooldown = true,
tactical = { BUFF = 2 },
getTalentCount = function(self, t) return math.floor(self:combatTalentScale(t, 2, 7, "log")) end,
getMaxLevel = function(self, t) return self:getTalentLevel(t) end,
......@@ -165,7 +166,7 @@ newTalent{
local tids = {}
for tid, _ in pairs(self.talents_cd) do
local tt = self:getTalentFromId(tid)
if tt.type[2] <= t.getMaxLevel(self, t) and tt.is_spell then
if tt.type[2] <= t.getMaxLevel(self, t) and tt.is_spell and not t.fixed_cooldown then
tids[#tids+1] = tid
end
end
......@@ -181,7 +182,7 @@ newTalent{
info = function(self, t)
local talentcount = t.getTalentCount(self, t)
local maxlevel = t.getMaxLevel(self, t)
return ([[Your mastery of the arcane flows allow you to reset the cooldown of %d of your spells of tier %d or less.]]):
return ([[Your mastery of the arcane flows allow you to reset the cooldown of %d of most of your spells of tier %d or less.]]):
format(talentcount, maxlevel)
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