Core/Spells: get effect value correctly. thx shauren!
This commit is contained in:
1 parent
0ec4d55ca6
commit
b528f70639
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user