Code: Select all
newTalent{
name = "Arcane Shield",
type = {"spell/aegis", 3},
require = spells_req3,
points = 5,
mode = "sustained",
sustain_mana = 50,
use_only_arcane = 2,
cooldown = 30,
tactical = { BUFF = 2 },
getShield = function(self, t) return 20 + self:combatTalentSpellDamage(t, 5, 500) / 10 end,
activate = function(self, t)
local shield = t.getShield(self, t)
game:playSoundNear(self, "talents/arcane")
local ret = {
shield = self:addTemporaryValue("arcane_shield", shield),
}
self:checkEncumbrance()
return ret
end,
deactivate = function(self, t, p)
self:removeTemporaryValue("arcane_shield", p.shield)
return true
end,
info = function(self, t)
local shield = t.getShield(self, t)
return ([[Surround yourself with protective arcane forces.
Each time you receive a direct heal (not a life regeneration effect), you automatically get a damage shield of %d%% of the heal value for 3 turns.
The shield value will increase with your Spellpower.]]):
format(shield)
end,
}