From d57332ca5d759c014c008c02486c59c1c4550ccb Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 31 Aug 2020 18:06:15 +0200 Subject: [PATCH] Core/Spells: Selfless Healer's damage bonus will now scale with the amount of holy power --- src/server/scripts/Spells/spell_paladin.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 17d660049c8..968d88ee63e 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -1497,6 +1497,11 @@ class spell_pal_word_of_glory_AuraScript : public AuraScript // -85803 - Selfless Healer class spell_pal_selfless_healer : public AuraScript { + bool Validate(SpellInfo const* spellInfo) override + { + return ValidateSpellInfo({ static_cast(spellInfo->Effects[EFFECT_1].TriggerSpell) }); + } + bool CheckProc(ProcEventInfo& eventInfo) { if (HealInfo* heal = eventInfo.GetHealInfo()) @@ -1511,7 +1516,8 @@ class spell_pal_selfless_healer : public AuraScript Unit* target = GetTarget(); SpellInfo const* spell = sSpellMgr->AssertSpellInfo(GetSpellInfo()->Effects[aurEff->GetEffIndex()].TriggerSpell); - target->CastCustomSpell(spell->Id, SPELLVALUE_BASE_POINT0, aurEff->GetAmount(), target, true, nullptr, aurEff); + int32 bp = aurEff->GetAmount() * (1 + target->GetPower(POWER_HOLY_POWER)); + target->CastCustomSpell(spell->Id, SPELLVALUE_BASE_POINT0, bp, target, true, nullptr, aurEff); } void Register() override