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

Added ActorTalents:getTalentCooldown()

git-svn-id: http://svn.net-core.org/repos/t-engine4@2283 51575b47-30f0-44d4-a5cc-537603b46e54
parent 871af1b8
No related branches found
No related tags found
No related merge requests found
......@@ -471,6 +471,15 @@ function _M:unlearnTalentType(tt)
return true
end
--- Gets a talent cooldown
-- @param t the talent to get cooldown
function _M:getTalentCooldown(t)
if not t.cooldown then return end
local cd = t.cooldown
if type(cd) == "function" then cd = cd(self, t) end
return cd
end
--- Starts a talent cooldown
-- @param t the talent to cooldown
function _M:startTalentCooldown(t)
......
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