Commit 42bbb744c081244e1dfc1cbc877f74dd247b6509

Authored by dg
1 parent fea618f9

fix


git-svn-id: http://svn.net-core.org/repos/t-engine4@4725 51575b47-30f0-44d4-a5cc-537603b46e54
@@ -2257,7 +2257,7 @@ function _M:unlearnTalent(t_id) @@ -2257,7 +2257,7 @@ function _M:unlearnTalent(t_id)
2257 end 2257 end
2258 2258
2259 -- Unsustain ? 2259 -- Unsustain ?
2260 - if not self:knowTalent(t_id) and t.mode == "sustained" then self:forceUseTalent(t_id, {ignore_energy=true}) end 2260 + if not self:knowTalent(t_id) and t.mode == "sustained" and self:isTalentActive(t_id) then self:forceUseTalent(t_id, {ignore_energy=true}) end
2261 2261
2262 return true 2262 return true
2263 end 2263 end