Skip to content
Snippets Groups Projects
Commit f53fd4e6 authored by DarkGod's avatar DarkGod
Browse files

Repulsion only works on foes

parent d2322faf
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -262,7 +262,7 @@ newTalent{
local tg = self:getTalentTarget(t)
self:project(tg, self.x, self.y, function(px, py, tg, self)
local target = game.level.map(px, py, Map.ACTOR)
if target then
if target and self:reactionToward(target) < 0 then
local damage = t.getShieldDamage(self, t)
local speed, hit = self:attackTargetWith(target, shield_combat, nil, damage)
if hit and self:getTalentFromId(game.player.T_RUSH) then self.talents_cd["T_RUSH"] = nil 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