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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3901 51575b47-30f0-44d4-a5cc-537603b46e54
parent e799353c
No related branches found
No related tags found
No related merge requests found
......@@ -459,7 +459,7 @@ newEffect{
local tids = {}
for tid, lev in pairs(self.talents) do
local t = self:getTalentFromId(tid)
if not self.talents_cd[tid] and t.mode == "activated" and not t.innate then tids[#tids+1] = t end
if t and not self.talents_cd[tid] and t.mode == "activated" and not t.innate then tids[#tids+1] = t end
end
for i = 1, 4 do
local t = 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