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