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

Evasion does not prevent self-hits (so you can break your own iceblocks)

git-svn-id: http://svn.net-core.org/repos/t-engine4@5815 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8f50d6d5
No related branches found
No related tags found
No related merge requests found
......@@ -313,7 +313,7 @@ end
--- Try to totally evade an attack
function _M:checkEvasion(target)
if not target:attr("evasion") then return end
if not target:attr("evasion") or self == target then return end
local evasion = target:attr("evasion")
print("checkEvasion", evasion, target.level, self.level)
......
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