Skip to content

Instantly share code, notes, and snippets.

@KiriX
Created April 17, 2012 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KiriX/2404501 to your computer and use it in GitHub Desktop.
Save KiriX/2404501 to your computer and use it in GitHub Desktop.
Item - Druid T10 Restoration 2P Bonus
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 8559a35..af6f4d0 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -8809,7 +8809,11 @@ void Aura::PeriodicTick()
if (GetAuraTicks() > 1 && ticks > 1)
// Item - Druid T10 Restoration 2P Bonus
if (Aura *aura = pCaster->GetAura(70658, EFFECT_INDEX_0))
- addition += abs(int32((addition * aura->GetModifier()->m_amount) / ((ticks-1)* 100)));
+ {
+ // Amount of decrease each ticks
+ int32 tickDecr = (int32(amount)*ticks*(-6+2*6)/100)/3;
+ addition += abs(int32(tickDecr * aura->GetModifier()->m_amount / 100));
+ }
damageInfo.damage = damageInfo.damage + addition;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment