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

Arcane Power costs less and also adds arcane resistance

parent 040dfdca
No related branches found
No related tags found
No related merge requests found
......@@ -22,28 +22,30 @@ newTalent{
type = {"spell/arcane", 1},
mode = "sustained",
require = spells_req1,
sustain_mana = 50,
sustain_mana = 25,
points = 5,
cooldown = 30,
tactical = { BUFF = 2 },
use_only_arcane = 1,
getSpellpowerIncrease = function(self, t) return self:combatTalentScale(t, 5, 20, 0.75) end,
getArcaneResist = function(self, t) return 5 + self:combatTalentSpellDamage(t, 10, 500) / 18 end,
activate = function(self, t)
game:playSoundNear(self, "talents/arcane")
return {
power = self:addTemporaryValue("combat_spellpower", t.getSpellpowerIncrease(self, t)),
res = self:addTemporaryValue("resists", {[DamageType.ARCANE] = t.getArcaneResist(self, t)}),
particle = self:addParticles(Particles.new("arcane_power", 1)),
}
end,
deactivate = function(self, t, p)
self:removeParticles(p.particle)
self:removeTemporaryValue("combat_spellpower", p.power)
self:removeTemporaryValue("resists", p.res)
return true
end,
info = function(self, t)
local spellpowerinc = t.getSpellpowerIncrease(self, t)
return ([[Your mastery of magic allows you to enter a state of deep concentration, increasing your Spellpower by %d.]]):
format(spellpowerinc)
return ([[Your mastery of magic allows you to enter a state of deep concentration, increasing your Spellpower by %d and arcane resistance by %d%%.]]):
format(t.getSpellpowerIncrease(self, t), t.getArcaneResist(self, t))
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