Core/Spells: corrected a typo that was causing Earth Shield to gain additional spell power benefits from the heal target's spellpower

This commit is contained in:
Ovahlord
2019-10-09 13:59:25 +02:00
parent 7f0356bd79
commit ba85a5ec9f
3 changed files with 4 additions and 3 deletions

View File

@@ -334,9 +334,9 @@ class spell_sha_earth_shield : public AuraScript
{
Unit* target = GetTarget();
int32 bp = aurEff->GetAmount();
bp = caster->SpellHealingBonusDone(target, GetSpellInfo(), bp, HEAL, aurEff->GetEffIndex());
bp = caster->SpellHealingBonusDone(target, GetSpellInfo(), bp, HEAL, EFFECT_0);
bp = target->SpellHealingBonusTaken(caster, GetSpellInfo(), bp, HEAL);
if (AuraEffect const* glyphEff = caster->GetDummyAuraEffect(SPELLFAMILY_SHAMAN, SHAMAN_ICON_ID_GLYPH_OF_EARTH_SHIELD, EFFECT_0))
AddPct(bp, glyphEff->GetAmount());