Skip to content
Snippets Groups Projects
Commit 9450e40d authored by dg's avatar dg
Browse files

Aegis works on Disruption Shield

git-svn-id: http://svn.net-core.org/repos/t-engine4@5417 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2493b939
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,7 @@ newTalent{
local e = self.tempeffect_def[eff_id]
if e.on_aegis then return true end
end
if self:isTalentActive(self.T_DISRUPTION_SHIELD) then return true end
end,
action = function(self, t)
local target = self
......@@ -148,6 +149,10 @@ newTalent{
eff.e.on_aegis(self, eff.p, shield)
end
if self:isTalentActive(self.T_DISRUPTION_SHIELD) then
self:setEffect(self.EFF_MANA_OVERFLOW, math.ceil(2 + self:getTalentLevel(t)), {power=shield})
end
game:playSoundNear(self, "talents/heal")
return true
end,
......@@ -155,7 +160,7 @@ newTalent{
local shield = t.getShield(self, t)
return ([[Release arcane energies into any magical shield currently protecting you, further charging it by %d%% of its max absorb value.
It will affect at most %d shield effects.
Affected shields are: Damage Shield, Time Shield, Displacement Shield.
Affected shields are: Damage Shield, Time Shield, Displacement Shield, Disruption Shield.
The charging will increase with your Spellpower.]]):
format(shield, self:getTalentLevelRaw(t))
end,
......
......@@ -54,6 +54,24 @@ newEffect{
end,
}
newEffect{
name = "MANA_OVERFLOW", image = "talents/aegis.png",
desc = "Mana Overflow",
long_desc = function(self, eff) return ("The mana is overflowing, increasing your max mana by %d%%."):format(eff.power) end,
type = "magical",
subtype = { arcane=true },
status = "beneficial",
parameters = { power=10 },
on_gain = function(self, err) return "#Target# starts to overflow mana.", "+Mana Overflow" end,
on_lose = function(self, err) return "#Target# stops overflowing mana.", "-Mana Overflow" end,
activate = function(self, eff)
eff.tmpid = self:addTemporaryValue("max_mana", eff.power * self:getMaxMana() / 100)
end,
deactivate = function(self, eff)
self:removeTemporaryValue("max_mana", eff.tmpid)
end,
}
newEffect{
name = "STONED", image = "talents/stone_touch.png",
desc = "Stoned",
......
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