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

Unlearning Vile Poisons will unsustain lost poisons

git-svn-id: http://svn.net-core.org/repos/t-engine4@4718 51575b47-30f0-44d4-a5cc-537603b46e54
parent ebefa099
No related branches found
No related tags found
No related merge requests found
......@@ -2255,6 +2255,10 @@ function _M:unlearnTalent(t_id)
self:unlearnTalent(key)
end
end
-- Unsustain ?
if not self:knowTalent(t_id) and t.mode == "sustained" then self:forceUseTalent(t_id, {ignore_energy=true}) end
return true
end
......
......@@ -47,8 +47,8 @@ newTalent{
on_unlearn = function(self, t)
local lev = self:getTalentLevelRaw(t)
if lev == 0 then
self.vile_poisons = nil
self:unlearnTalent(self.T_DEADLY_POISON)
self.vile_poisons = nil
elseif lev == 1 then
self:unlearnTalent(self.T_NUMBING_POISON)
elseif lev == 2 then
......@@ -90,7 +90,7 @@ newTalent{
local e = target.tempeffect_def[eff_id]
if e.subtype.poison then nb = nb + 1 end
end
return { NATURE = nb}
return { NATURE = nb}
end },
action = function(self, t)
local tg = {type="hit", range=self:getTalentRange(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