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

Stun will not put instant talents on cooldown, such as wild infusions

git-svn-id: http://svn.net-core.org/repos/t-engine4@5250 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0b564706
No related branches found
No related tags found
No related merge requests found
......@@ -397,7 +397,7 @@ function _M:generateRandart(data)
-- Distribute points
local hpoints = math.ceil(points / 2)
local i = 0
while hpoints > 0 do
while hpoints > 0 and #powers >0 do
i = util.boundWrap(i + 1, 1, #powers)
local p = powers[i]:clone()
if p.points <= hpoints then
......
......@@ -292,7 +292,7 @@ newEffect{
local tids = {}
for tid, lev in pairs(self.talents) do
local t = self:getTalentFromId(tid)
if t and 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 and t.no_energy ~= true then tids[#tids+1] = t end
end
for i = 1, 4 do
local t = rng.tableRemove(tids)
......@@ -328,7 +328,7 @@ newEffect{
local tids = {}
for tid, lev in pairs(self.talents) do
local t = self:getTalentFromId(tid)
if t and 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 and t.no_energy ~= true 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