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

Piercing arrow whot hit twice the same target

git-svn-id: http://svn.net-core.org/repos/t-engine4@1132 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3d93701a
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,7 @@ function _M:projectDoMove(typ, tgtx, tgty, x, y, srcx, srcy)
if lx < 0 or lx >= game.level.map.w or ly < 0 or ly >= game.level.map.h then return lx, ly, false, true end
-- Deam damage: beam
if typ.line then return lx, ly, true, false end
if typ.line and (lx ~= tgtx or ly ~= tgty) then return lx, ly, true, false end
end
-- Ok if we are at the end
if (not lx and not ly) then return lx, ly, false, true 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