aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-15 09:43:46 -0600
committermegamage <none@none>2008-12-15 09:43:46 -0600
commit110537ffc2aeba03bdea506f8ee1f5a0f0a9a3ca (patch)
treefe233d203e9258ea65c7f8844d30e3f6cf12672e /src/game/SpellEffects.cpp
parent79314e0768c797809b25eb7533361dafa466ce78 (diff)
*Let ticks of DOT and HOT gain caster's current bonus instead of the bonus when casted.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 70ec4b47ed4..62605a4f7a7 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2351,10 +2351,12 @@ void Spell::EffectHeal( uint32 /*i*/ )
idx++;
}
- //int32 tickheal = caster->SpellHealingBonus(targetAura->GetSpellProto(), targetAura->GetModifier()->m_amount, DOT, unitTarget);
+ int32 tickheal = targetAura->GetModifierValuePerStack();
+ if(Unit* auraCaster = targetAura->GetCaster())
+ tickheal = auraCaster->SpellHealingBonus(targetAura->GetSpellProto(), tickheal, DOT, unitTarget);
//int32 tickheal = targetAura->GetSpellProto()->EffectBasePoints[idx] + 1;
//It is said that talent bonus should not be included
- int32 tickheal = targetAura->GetModifierValue();
+ //int32 tickheal = targetAura->GetModifierValue();
int32 tickcount = GetSpellDuration(targetAura->GetSpellProto()) / targetAura->GetSpellProto()->EffectAmplitude[idx];
addhealth += tickheal * tickcount;
unitTarget->RemoveAurasDueToCasterSpell(targetAura->GetId(), targetAura->GetCasterGUID());