Sustained talents never on cooldown in UseTalents
Posted: Fri Dec 31, 2010 6:26 pm
This was originally reported at the bottom of this thread, but rather than resurrect it I will open a new one.
The UseTalent dialog is buggy since sustained talent never show up as on cooldown. An if statement should be turned into an elseif as below:
The UseTalent dialog is buggy since sustained talent never show up as on cooldown. An if statement should be turned into an elseif as below:
Code: Select all
local status = tstring{{"color", "LIGHT_GREEN"}, "Active"}
if self.actor:isTalentCoolingDown(t) then status = tstring{{"color", "LIGHT_RED"}, self.actor:isTalentCoolingDown(t).." turns"} end
elseif t.mode == "sustained" then status = self.actor:isTalentActive(t.id) and tstring{{"color", "YELLOW"}, "Sustaining"} or tstring{{"color", "LIGHT_GREEN"}, "Sustain"} end