Skip to content
Snippets Groups Projects
Commit d7bf828b authored by Eric Wykoff's avatar Eric Wykoff
Browse files

may as well

parent 7012237a
No related branches found
No related tags found
No related merge requests found
......@@ -324,8 +324,10 @@ newTalent{
else
-- Melee attack
local tg = {type="hit", range=self:getTalentRange(t), talent=t}
local x, y, target = self:getTarget(tg)
if not target or not self:canProject(tg, x, y) then return nil end
local _, x, y = self:canProject(tg, self:getTarget(tg))
local target = game.level.map(x, y, game.level.map.ACTOR)
if not target then return nil end
local hitted = self:attackTarget(target, nil, t.getDamage(self, t), true)
if hitted then
......
......@@ -61,10 +61,11 @@ newTalent{
elseif mainhand then
-- Melee attack
local tg = {type="hit", range=self:getTalentRange(t), talent=t}
local x, y, target = self:getTarget(tg)
if not target or not self:canProject(tg, x, y) then return nil end
local _, x, y = self:canProject(tg, self:getTarget(tg))
local target = game.level.map(x, y, game.level.map.ACTOR)
if not target then return nil end
local hitted = self:attackTarget(target, nil, t.getDamage(self, t), true)
if hitted then
-- Find our teleport location
......
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