Skip to content
Snippets Groups Projects
Commit 3b8fba16 authored by dg's avatar dg
Browse files

Shadow Combat now scales with spellpower

git-svn-id: http://svn.net-core.org/repos/t-engine4@4024 51575b47-30f0-44d4-a5cc-537603b46e54
parent 022af619
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult)
-- Shadow cast
if hitted and not target.dead and self:knowTalent(self.T_SHADOW_COMBAT) and self:isTalentActive(self.T_SHADOW_COMBAT) and self:getMana() > 0 then
local dam = 3 + self:getTalentLevel(self.T_SHADOW_COMBAT) * 2
local dam = 2 + self:combatTalentSpellDamage(self.T_SHADOW_COMBAT, 2, 40)
local mana = 1 + self:getTalentLevelRaw(self.T_SHADOW_COMBAT) / 1.5
if self:getMana() > mana then
DamageType:get(DamageType.DARKNESS).projector(self, target.x, target.y, DamageType.DARKNESS, dam)
......
......@@ -26,7 +26,7 @@ newTalent{
sustain_stamina = 20,
cooldown = 5,
tactical = { BUFF = 2 },
getDamage = function(self, t) return 3 + self:getTalentLevel(t) * 2 end,
getDamage = function(self, t) return 2 + self:combatTalentSpellDamage(t, 2, 40) end,
getManaCost = function(self, t) return 1 + self:getTalentLevelRaw(t) / 1.5 end,
activate = function(self, t)
return {}
......
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