Skip to content
Snippets Groups Projects
Commit 3a6a935f authored by dg's avatar dg
Browse files

Talents that can not be used will only grey out after the cooldown has elpased

git-svn-id: http://svn.net-core.org/repos/t-engine4@2444 51575b47-30f0-44d4-a5cc-537603b46e54
parent b7392bd2
No related branches found
No related tags found
No related merge requests found
......@@ -90,16 +90,15 @@ function _M:display()
if ts[3] == "talent" then
local tid = ts[1]
local t = a:getTalentFromId(tid)
local can_use = a:preUseTalent(t, true, true)
if not can_use then
txt = t.name
color = {190,190,190}
elseif a:isTalentCoolingDown(t) then
if a:isTalentCoolingDown(t) then
txt = ("%s (%d)"):format(t.name, a:isTalentCoolingDown(t))
color = {255,0,0}
elseif a:isTalentActive(t.id) then
txt = t.name
color = {255,255,0}
elseif not a:preUseTalent(t, true, true) then
txt = t.name
color = {190,190,190}
else
txt = t.name
color = {0,255,0}
......
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