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

Silence wont prevent sustained talents desactivation

git-svn-id: http://svn.net-core.org/repos/t-engine4@3298 51575b47-30f0-44d4-a5cc-537603b46e54
parent f1b887c0
No related branches found
No related tags found
No related merge requests found
......@@ -1809,7 +1809,7 @@ function _M:preUseTalent(ab, silent, fake)
return false
end
-- When silenced you can deactivate spells but not activate them
if ab.no_silence and self:attr("silence") and (ab.mode ~= "sustained" or self:isTalentActive(ab.id)) then
if ab.no_silence and self:attr("silence") and (ab.mode ~= "sustained" or not self:isTalentActive(ab.id)) then
if not silent then game.logSeen(self, "%s is silenced and cannot use %s.", self.name:capitalize(), ab.name) end
return false
end
......
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