Skip to content
Snippets Groups Projects
Commit cbb32fd0 authored by Eric Wykoff's avatar Eric Wykoff
Browse files

hack to make targeting a bit clearer for the player with matter spells

parent 44ee6f7c
No related branches found
No related tags found
No related merge requests found
......@@ -38,12 +38,18 @@ newTalent{
getAshes = function(self, t) return {type="ball", range=0, radius=self:getTalentRadius(t), selffire=false} end,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 20, 230, getParadoxSpellpower(self, t)) end,
action = function(self, t)
-- Check for digs first
local digs = self:isTalentActive(self.T_DISINTEGRATION) and self:callTalent(self.T_DISINTEGRATION, "getDigs")
local tg = self:getTalentTarget(t)
-- Just for targeting change to pass terrain
if digs then tg.pass_terrain = true end
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
-- Check for digs
local digs = self:isTalentActive(self.T_DISINTEGRATION) and self:callTalent(self.T_DISINTEGRATION, "getDigs")
-- Change back pass terrain
tg.pass_terrain = nil
-- Ashes to Ashes
if target and target == self then
......
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