Created
April 17, 2012 08:22
-
-
Save KiriX/2404501 to your computer and use it in GitHub Desktop.
Item - Druid T10 Restoration 2P Bonus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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