From 1cb3d4b54955da5ed3fd2209821deded4866b490 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Tue, 21 Jan 2014 12:13:02 +0100 Subject: [PATCH] Arcane Power costs less and also adds arcane resistance --- game/modules/tome/data/talents/spells/arcane.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/game/modules/tome/data/talents/spells/arcane.lua b/game/modules/tome/data/talents/spells/arcane.lua index 80e78f71b1..a7aca5e0b4 100644 --- a/game/modules/tome/data/talents/spells/arcane.lua +++ b/game/modules/tome/data/talents/spells/arcane.lua @@ -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, } -- GitLab