Skip to content
Snippets Groups Projects
Commit f555d62f authored by Chris Davidson's avatar Chris Davidson
Browse files

Shadow Grasp no longer movies enemies if they're adjacent

parent a2900c72
No related branches found
No related tags found
No related merge requests found
......@@ -76,10 +76,11 @@ newTalent{
local sx, sy = util.findFreeGrid(self.x, self.y, 5, true, {[engine.Map.ACTOR]=true})
if not sx then return end
-- Move first so we get the full benefit of Shadowstrike
target:move(sx, sy, true)
self:project(tg, target.x, target.y, DamageType.DARKNESS, self:spellCrit(t.getDamage(self, t)))
if core.fov.distance(self.x, self.y, target.x, target.y) > 1 then
-- Move first so we get the full benefit of Shadowstrike
target:move(sx, sy, true)
self:project(tg, target.x, target.y, DamageType.DARKNESS, self:spellCrit(t.getDamage(self, t)))
end
if target:canBe("silence") then
target:setEffect(target.EFF_SILENCED, t.getDuration(self, t), {apply_power=self:combatAttack()})
else
......
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