mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-07 01:18:55 +01:00
Core/Spells: Pain and Suffering's proc effect will now also recalculate the damage of Shadow Word: Pain
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user