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

Confusion resistance now reduces confusion power (up to 10% min)

git-svn-id: http://svn.net-core.org/repos/t-engine4@4790 51575b47-30f0-44d4-a5cc-537603b46e54
parent e5323bb3
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ newEffect{
on_gain = function(self, err) return "#Target# wanders around!.", "+Confused" end,
on_lose = function(self, err) return "#Target# seems more focused.", "-Confused" end,
activate = function(self, eff)
eff.power = eff.power - (self:attr("confusion_immune") or 0) / 2
eff.power = math.max(eff.power - (self:attr("confusion_immune") or 0), 10)
eff.tmpid = self:addTemporaryValue("confused", eff.power)
if eff.power <= 0 then eff.dur = 0 end
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