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

Fix Aether Beam not respecting Spellcraft

parent e9f9d923
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -104,9 +104,10 @@ newTalent{
self.list.i = util.boundWrap(self.list.i + 1, 1, #self.list)
local tg = {type="beam", x=self.x, y=self.y, range=self.rad, selffire=self.summoner:spellFriendlyFire()}
print()
self.summoner.__project_source = self
self.summoner:project(tg, self.x, self.y, engine.DamageType.ARCANE, self.dam/10, nil)
self:project(tg, x, y, function(tx, ty)
self.summoner:project(tg, x, y, function(tx, ty)
-- In rare circumstances this can hit the same target 4-7 times so we need to sanity check it
local target = game.level.map(tx, ty, engine.Map.ACTOR)
if not target then return 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