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

De-activating Willful Tormenter will also disable other sustains until the max vim is > 0

git-svn-id: http://svn.net-core.org/repos/t-engine4@5140 51575b47-30f0-44d4-a5cc-537603b46e54
parent 18778494
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,17 @@ newTalent{
end,
deactivate = function(self, t, p)
self:removeTemporaryValue("max_vim", p.vim)
while self:getMaxVim() < 0 do
local l = {}
for tid, _ in pairs(self.sustain_talents) do
local t = self:getTalentFromId(tid)
if t.sustain_vim then l[#l+1] = tid end
end
if #l == 0 then break end
self:forceUseTalent(rng.table(l), {ignore_energy=true, no_equilibrium_fail=true, no_paradox_fail=true})
end
return true
end,
info = function(self, 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