newTalent{ name = "Arcane Power", short_name = "ARCANE_POWER", image = "talents/arcane_power.png", type = {"spell/arcane", 1}, mode = "sustained", require = spells_req1, sustain_mana = 50, points = 5, cooldown = 30, tactical = { BUFF = 2 }, spellpower_increase = { 5, 9, 13, 16, 18 }, getSpellpowerIncrease = function(self, t) local v = t.spellpower_increase[self:getTalentLevelRaw(t)] if v then return v else return 18 + (self:getTalentLevelRaw(t) - 5) * 2 end end, activate = function(self, t) game:playSoundNear(self, "talents/arcane") game:playSound (self, "talents/arcane") return { power = self:addTemporaryValue("combat_spellpower", t.getSpellpowerIncrease(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) return true end, info = function(self, t) local spellpowerinc = t.getSpellpowerIncrease(self, t) return ([[Your mastery of magic allows you to enter a deep concentration state, increasing your spellpower by %d.]]): format(spellpowerinc) end, }