[1.7.4] Aether Avatar can increase it's own cooldown

Make all T-Engine/ToME 4 bug reports here

Moderator: Moderator

Post Reply
Message
Author
Tradewind_Rider
Thalore
Posts: 182
Joined: Sat Oct 05, 2019 8:55 pm

[1.7.4] Aether Avatar can increase it's own cooldown

#1 Post by Tradewind_Rider »

Hi!

Aether Avatar gives you an effect, that gives you: "arcane_cooldown_divide", 3

This parameter affects the cooldown of all arcane & aether talents by this way:

cd = math.ceil(cd / self.arcane_cooldown_divide)

--- so, the cooldown will be divided by 3, and after this it will be ROUNDED UP

Aether Avatar is an Aether spell, so it's own cooldown is affected by this also.


At the talent, this reduction want to be avoided, so the talents' cooldown is altered:

cooldown = function(self, t)
local rcd = math.ceil(self:combatTalentLimit(t, 15, 37, 25)) -- Limit > 15
return self:attr("arcane_cooldown_divide") and rcd * self.arcane_cooldown_divide or rcd
end,

So if we have the Aether Avatar effect, the talents' cooldown will be multiplied with 3.

BUT:

The cooldown was rounded up, and this rounded up value is then multiplied with 3.

This can result in a higher cooldown in many cases, when we have Aether Avatar.

Post Reply