From 7919cdf0b64637bfd5dad82f297ef4edd74a8151 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 23 May 2021 11:19:07 +0200 Subject: [PATCH] Core/Spells: Pain and Suffering's proc effect will now also recalculate the damage of Shadow Word: Pain --- src/server/scripts/Spells/spell_priest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp index 19849eda9e7..de61ced8d9d 100644 --- a/src/server/scripts/Spells/spell_priest.cpp +++ b/src/server/scripts/Spells/spell_priest.cpp @@ -562,8 +562,11 @@ class spell_pri_pain_and_suffering_proc : public SpellScript return; // Refresh Shadow Word: Pain duration on target - if (AuraEffect* aur = GetHitUnit()->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_PRIEST, 0x8000, 0, 0, caster->GetGUID())) - aur->GetBase()->RefreshDuration(); + if (AuraEffect* aurEff = GetHitUnit()->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_PRIEST, 0x8000, 0, 0, caster->GetGUID())) + { + aurEff->RecalculateAmount(caster); + aurEff->GetBase()->RefreshDuration(); + } } void Register() override