aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2021-09-28 21:48:46 -0300
committerShauren <shauren.trinity@gmail.com>2022-03-18 00:06:15 +0100
commit42de9d9cd8ee00428a532e09276929fe04c7b526 (patch)
tree19821d33aa28a333d9ba51731a41fdf67c28d39d /src
parente80777cb39d5eb940348300aa2a6d42cede039a8 (diff)
Scripts/ICC: Implemented spell Dark Reckoning
Closes #26941 (cherry picked from commit bddf41e718e45b32225af590d35e60b4ffbe4f38)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp
index 38834635478..d8abdc5246f 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp
@@ -1038,6 +1038,33 @@ class spell_deathwhisper_vampiric_might : public AuraScript
}
};
+// 69483 - Dark Reckoning
+class spell_deathwhisper_dark_reckoning : public AuraScript
+{
+ PrepareAuraScript(spell_deathwhisper_dark_reckoning);
+
+ bool Validate(SpellInfo const* spell) override
+ {
+ return !spell->GetEffects().empty()
+ && ValidateSpellInfo({ spell->GetEffect(EFFECT_0).TriggerSpell });
+ }
+
+ void OnPeriodic(AuraEffect const* aurEff)
+ {
+ PreventDefaultAction();
+ if (Unit* caster = GetCaster())
+ {
+ uint32 spellId = aurEff->GetSpellEffectInfo().TriggerSpell;
+ caster->CastSpell(GetTarget(), spellId, aurEff);
+ }
+ }
+
+ void Register() override
+ {
+ OnEffectPeriodic += AuraEffectPeriodicFn(spell_deathwhisper_dark_reckoning::OnPeriodic, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY);
+ }
+};
+
class at_lady_deathwhisper_entrance : public OnlyOnceAreaTriggerScript
{
public:
@@ -1068,6 +1095,7 @@ void AddSC_boss_lady_deathwhisper()
RegisterSpellScript(spell_deathwhisper_dominated_mind);
RegisterSpellScript(spell_deathwhisper_summon_spirits);
RegisterSpellScript(spell_deathwhisper_vampiric_might);
+ RegisterSpellScript(spell_deathwhisper_dark_reckoning);
// AreaTriggers
new at_lady_deathwhisper_entrance();