aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland
diff options
context:
space:
mode:
authoroffl <11556157+offl@users.noreply.github.com>2021-11-24 17:05:01 +0200
committerShauren <shauren.trinity@gmail.com>2022-03-23 00:06:37 +0100
commit83b4c8cd37bd3b6894cfbd1f48c1c7e7234f853f (patch)
treef11585c048cac1e49ecb36634e22494428ec61bd /src/server/scripts/Outland
parent4281049e0c0d38a968d1d37bdd3ec04e35b81850 (diff)
Scripts/Spells: Small cleanup for gen/item spell scripts (#27311)
(cherry picked from commit ef4c878d260c0e01a6ab2f4391af46c261d04785)
Diffstat (limited to 'src/server/scripts/Outland')
-rw-r--r--src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp19
1 files changed, 19 insertions, 0 deletions
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 0bde38f7a19..94289b63e14 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);