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

fix stormlash

git-svn-id: http://svn.net-core.org/repos/t-engine4@5789 51575b47-30f0-44d4-a5cc-537603b46e54
parent 039986c7
No related branches found
No related tags found
No related merge requests found
......@@ -3339,6 +3339,7 @@ newEntity{ base = "BASE_WHIP",
local blast = {type="ball", range=0, radius=1, selffire=false}
local x, y = who:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = who:canProject(tg, x, y)
local target = game.level.map(x, y, engine.Map.ACTOR)
if not target then return end
who:attackTarget(target, engine.DamageType.LIGHTNING, 1, true)
......
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