Core/Spells: get effect value correctly. thx shauren!

This commit is contained in:
Kandera committed 2012-04-25 09:20:18 -04:00
1 parent 0ec4d55ca6
commit b528f70639
1 file changed
+2 -2
+2 -2
View File
@@ -309,10 +309,10 @@ public:
{
if (Unit* caster = GetOriginalCaster())
{
if (Aura* aur = caster->GetAura(SPELL_T9_HEALING_2_PIECE))
if (AuraEffect* aurEff = caster->GetAuraEffect(SPELL_T9_HEALING_2_PIECE,EFFECT_0))
{
int32 heal = GetHitHeal();
AddPctN(heal, aur->GetSpellInfo()->Effects[0].CalcValue();
AddPctN(heal, aurEff->GetAmount());
SetHitHeal(heal);
}
}