Core/Spells: Nature's Blessing will now correctly grant its bonus only for eligible direct healing spells

This commit is contained in:
Ovahlord committed 2019-10-14 00:56:47 +02:00
1 parent 72ee5ccef4
commit 0a71e7c2c2
3 files changed
+22 -5

No files matched your search

+15
View File
@@ -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)
-5
View File
@@ -1082,11 +1082,6 @@ void Spell::EffectHeal(SpellEffIndex effIndex)
int32 addhealth = damage;
// Nature's Blessing
if (AuraEffect const* aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_SHAMAN, 2012, EFFECT_0))
if (unitTarget->HasAura(974))
AddPct(addhealth, aurEff->GetAmount());
// Vessel of the Naaru (Vial of the Sunwell trinket)
if (m_spellInfo->Id == 45064)
{
+7
View File
@@ -5629,6 +5629,13 @@ void SpellMgr::LoadSpellInfoCorrections()
if (spellInfo->SpellIconID == 2721 && spellInfo->SpellFamilyFlags[0] & 0x2)
spellInfo->SpellFamilyFlags[0] |= 0x40;
break;
case SPELLFAMILY_SHAMAN:
// Nature's Blessing should also affect Greater Healing Wave and Riptide
if (spellInfo->SpellIconID == 2012 && spellInfo->HasAura(SPELL_AURA_DUMMY))
spellInfo->Effects[EFFECT_0].SpellClassMask[2] = (0x00000010 | 0x00010000);
break;
default:
break;
}
}