Commit 25bcf6c8af34e2119ab8f6ecad6849c535a1c9b0

Authored by Chris Davidson
1 parent d71715f7

Fix Antimagic Zone targeting

... ... @@ -79,9 +79,10 @@ newTalent{
79 79 end,
80 80 action = function(self, t)
81 81 local tg = self:getTalentTarget(t)
82   - local x, y, target = self:getTarget(tg)
  82 + local x, y = self:getTarget(tg)
83 83 if not x or not y then return nil end
84   - if not self:canProject(tg, x, y) then return end
  84 + local _ _, _, _, x, y = self:canProject(tg, x, y)
  85 +
85 86 local nb = 0
86 87 self:project(tg, x, y, function(px, py)
87 88 local target = game.level.map(px, py, Map.ACTOR)
... ...