Core/Spells: Nature's Blessing will now correctly grant its bonus only for eligible direct healing spells
This commit is contained in:
1 parent
72ee5ccef4
commit
0a71e7c2c2
3 files changed
+22
-5
No files matched your search
@@ -7467,6 +7467,21 @@ uint32 Unit::SpellHealingBonusDone(Unit* victim, SpellInfo const* spellProto, ui
|
||||
}
|
||||
}
|
||||
|
||||
// Custom scripted damage
|
||||
switch (spellProto->SpellFamilyName)
|
||||
{
|
||||
case SPELLFAMILY_SHAMAN:
|
||||
{
|
||||
// Nature's Blessing
|
||||
if (AuraEffect const* blessing = GetDummyAuraEffect(SPELLFAMILY_SHAMAN, 2012, EFFECT_0))
|
||||
if (blessing->IsAffectingSpell(spellProto) && victim->HasAura(974, GetGUID()))
|
||||
AddPct(DoneTotalMod, blessing->GetAmount());
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// Done fixed damage bonus auras
|
||||
int32 DoneAdvertisedBenefit = SpellBaseHealingBonusDone(spellProto->GetSchoolMask());
|
||||
// modify spell power by victim's SPELL_AURA_MOD_HEALING auras (eg Amplify/Dampen Magic)
|
||||
|
||||
Reference in new issue
Block a user