From ef4c878d260c0e01a6ab2f4391af46c261d04785 Mon Sep 17 00:00:00 2001 From: offl <11556157+offl@users.noreply.github.com> Date: Wed, 24 Nov 2021 17:05:01 +0200 Subject: Scripts/Spells: Small cleanup for gen/item spell scripts (#27311) --- .../Outland/BlackTemple/boss_reliquary_of_souls.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/server/scripts/Outland') diff --git a/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp b/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp index 251ff1538cb..99cbaff68f6 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp @@ -745,6 +745,24 @@ class spell_reliquary_of_souls_aura_of_desire : public AuraScript } }; +// 41337 - Aura of Anger +class spell_reliquary_of_souls_aura_of_anger : public AuraScript +{ + PrepareAuraScript(spell_reliquary_of_souls_aura_of_anger); + + void HandleEffectPeriodicUpdate(AuraEffect* aurEff) + { + if (AuraEffect* aurEff1 = aurEff->GetBase()->GetEffect(EFFECT_1)) + aurEff1->ChangeAmount(aurEff1->GetAmount() + 5); + aurEff->SetAmount(100 * aurEff->GetTickNumber()); + } + + void Register() override + { + OnEffectUpdatePeriodic += AuraEffectUpdatePeriodicFn(spell_reliquary_of_souls_aura_of_anger::HandleEffectPeriodicUpdate, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE); + } +}; + // 28819 - Submerge Visual class spell_reliquary_of_souls_submerge : public AuraScript { @@ -815,6 +833,7 @@ void AddSC_boss_reliquary_of_souls() RegisterBlackTempleCreatureAI(npc_enslaved_soul); RegisterBlackTempleCreatureAI(npc_reliquary_combat_trigger); RegisterSpellScript(spell_reliquary_of_souls_aura_of_desire); + RegisterSpellScript(spell_reliquary_of_souls_aura_of_anger); RegisterSpellScript(spell_reliquary_of_souls_submerge); RegisterSpellScript(spell_reliquary_of_souls_spite); RegisterSpellScript(spell_reliquary_of_souls_frenzy); -- cgit v1.2.3