Skip to content
Snippets Groups Projects
Commit 63ba6f64 authored by dg's avatar dg
Browse files

Talent icons stay greyed out even when cooling down when the talent is...

Talent icons stay greyed out even when cooling down when the talent is unusable (but the countdown is still shown)


git-svn-id: http://svn.net-core.org/repos/t-engine4@4762 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3f847d6b
No related branches found
No related tags found
No related merge requests found
......@@ -132,10 +132,15 @@ function _M:display()
local t = a:getTalentFromId(tid)
display_entity = t.display_entity
if a:isTalentCoolingDown(t) then
color = {255,0,0}
angle = 360 * (1 - (a.talents_cd[t.id] / a:getTalentCooldown(t)))
if not a:preUseTalent(t, true, true) then
color = {190,190,190}
frame = "disabled"
else
frame = "cooldown"
color = {255,0,0}
angle = 360 * (1 - (a.talents_cd[t.id] / a:getTalentCooldown(t)))
end
txt = tostring(a:isTalentCoolingDown(t))
frame = "cooldown"
elseif a:isTalentActive(t.id) then
color = {255,255,0}
frame = "sustain"
......
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