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

ogre fury loses a stack every 7 turns

parent 21f53016
No related branches found
No related tags found
No related merge requests found
......@@ -942,7 +942,7 @@ newTalent{
end,
info = function(self, t)
return ([[You enter an ogric wrath for %d turns.
Whenever you miss a melee attack or any damage you deal is reduced by a damage shield or similar effect you gain a charge of Ogre Fury(up to 5 charges).
Whenever you miss a melee attack or any damage you deal is reduced by a damage shield or similar effect you gain a charge of Ogre Fury(up to 5 charges, each lasts 7 turns).
Each charge grants 10%% stun and confusion resistance, 20%% critical damage power and 5%% critical strike chance.
You loose a charge each time you deal a critical strike.
The duration will increase with your Strength.]]):format(t.getduration(self))
......
......@@ -3178,7 +3178,7 @@ newEffect{
if self.turn_procs.ogric_wrath then return end
self.turn_procs.ogric_wrath = true
self:setEffect(self.EFF_OGRE_FURY, 1, {})
self:setEffect(self.EFF_OGRE_FURY, 7, {})
end,
callbackOnMeleeAttack = function(self, eff, target, hitted, crit, weapon, damtype, mult, dam)
if hitted then return true end
......@@ -3194,7 +3194,7 @@ newEffect{
name = "OGRE_FURY", image = "effects/ogre_fury.png",
desc = "Ogre Fury",
long_desc = function(self, eff) return ("Increases stun and confusion resistances by %d%%, crit chance by %d%% and critical power by %d%%. %d charge(s)."):format(eff.stacks * 10, eff.stacks * 5, eff.stacks * 20, eff.stacks) end,
type = "magical", decrease = 0,
type = "magical",
subtype = { runic=true },
status = "beneficial",
parameters = { stacks=1, max_stacks=5 },
......@@ -3232,6 +3232,13 @@ newEffect{
deactivate = function(self, eff, e)
e.do_effect(self, eff, false)
end,
on_timeout = function(self, eff, e)
if eff.stacks > 1 and eff.dur <= 1 then
eff.stacks = eff.stacks - 1
eff.dur = 7
e.do_effect(self, eff, false)
end
end
}
newEffect{
......
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