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

Talents that do not take a turn to use are not affected by confusion effects

git-svn-id: http://svn.net-core.org/repos/t-engine4@2291 51575b47-30f0-44d4-a5cc-537603b46e54
parent 31dbaff1
No related branches found
No related tags found
No related merge requests found
......@@ -1537,7 +1537,7 @@ function _M:preUseTalent(ab, silent, fake)
end
-- Confused ? lose a turn!
if self:attr("confused") and not fake then
if self:attr("confused") and ab.no_energy ~= true and not fake then
if rng.percent(self:attr("confused")) then
if not silent then game.logSeen(self, "%s is confused and fails to use %s.", self.name:capitalize(), ab.name) end
self:useEnergy()
......
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