Skip to content
Snippets Groups Projects
Commit 7307b155 authored by dg's avatar dg
Browse files

Shadows correctly use empathic hex and count as summons for the Blighted Summoning requirement

git-svn-id: http://svn.net-core.org/repos/t-engine4@6150 51575b47-30f0-44d4-a5cc-537603b46e54
parent 47313f9f
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ newTalent{
direct_hit = true,
requires_target = true,
target = function(self, t)
return {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t), talent=t}
return {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t), friendlyfire=false, talent=t}
end,
action = function(self, t)
local tg = self:getTalentTarget(t)
......
......@@ -272,7 +272,11 @@ local function createShadow(self, level, tCallShadows, tShadowWarriors, tShadowM
return self:useTalent(self.T_SHADOW_LIGHTNING)
end,
farAttackSpell = function(self)
return self:useTalent(self.T_SHADOW_FLAMES)
if self:knowTalent(self.T_EMPATHIC_HEX) and not self:isTalentCoolingDown(self.T_EMPATHIC_HEX) and rng.percent(50) then
return self:useTalent(self.T_EMPATHIC_HEX)
else
return self:useTalent(self.T_SHADOW_FLAMES)
end
end,
dominate = function(self)
return self:useTalent(self.T_DOMINATE)
......@@ -313,6 +317,7 @@ local function createShadow(self, level, tCallShadows, tShadowWarriors, tShadowM
if self:knowTalent(self.T_BLIGHTED_SUMMONING) then npc:learnTalent(npc.T_EMPATHIC_HEX, true, 3) end
self:attr("summoned_times", 1)
return npc
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