Commit 42bbb744c081244e1dfc1cbc877f74dd247b6509
1 parent
fea618f9
fix
git-svn-id: http://svn.net-core.org/repos/t-engine4@4725 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -2257,7 +2257,7 @@ function _M:unlearnTalent(t_id) |
2257 | 2257 | end |
2258 | 2258 | |
2259 | 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 | 2262 | return true |
2263 | 2263 | end | ... | ... |
-
Please register or login to post a comment