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

even wrose ! :)

git-svn-id: http://svn.net-core.org/repos/t-engine4@6760 51575b47-30f0-44d4-a5cc-537603b46e54
parent f637799b
No related branches found
No related tags found
No related merge requests found
......@@ -1848,10 +1848,7 @@ newEffect{
on_gain = function(self, err) return nil, "+Distortion" end,
on_lose = function(self, err) return "#Target# is no longer distorted." or nil, "-Distortion" end,
activate = function(self, eff)
eff.id = self:effectTemporaryValue(eff, "resists", {[DamageType.PHYSICAL]=-eff.power})
end,
deactivate = function(self, eff)
self:removeTemporaryValue("resists", eff.id)
self:effectTemporaryValue(eff, "resists", {[DamageType.PHYSICAL]=-eff.power})
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