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

Lethargy trap will only put activable abilities on cooldown

git-svn-id: http://svn.net-core.org/repos/t-engine4@1517 51575b47-30f0-44d4-a5cc-537603b46e54
parent b702d341
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,8 @@ newEntity{ base = "TRAP_ANNOY",
triggered = function(self, x, y, who)
local tids = {}
for tid, lev in pairs(who.talents) do
if not who.talents_cd[tid] then tids[#tids+1] = tid end
local t = who:getTalentFromId()
if not who.talents_cd[tid] and t.mode == "activated" then tids[#tids+1] = tid end
end
for i = 1, 3 do
local tid = rng.tableRemove(tids)
......
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