mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/Spells: Selfless Healer's damage bonus will now scale with the amount of holy power
This commit is contained in:
@@ -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<uint32>(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
|
||||
|
||||
Reference in New Issue
Block a user