From cadbf42ea4489933f28caf356f8c8d09ca243083 Mon Sep 17 00:00:00 2001 From: ccrs Date: Sat, 29 Jun 2019 16:01:58 +0200 Subject: Misc: some corrections after recent merges (cherry picked from commit 626a24822b3c6a5d5b9a4b29861ecf393fd9288b) --- src/server/scripts/Northrend/zone_sholazar_basin.cpp | 10 ++++++++++ src/server/scripts/Northrend/zone_storm_peaks.cpp | 5 +++++ 2 files changed, 15 insertions(+) (limited to 'src/server/scripts/Northrend') diff --git a/src/server/scripts/Northrend/zone_sholazar_basin.cpp b/src/server/scripts/Northrend/zone_sholazar_basin.cpp index fd4d463b601..1fbe817b82c 100644 --- a/src/server/scripts/Northrend/zone_sholazar_basin.cpp +++ b/src/server/scripts/Northrend/zone_sholazar_basin.cpp @@ -762,6 +762,16 @@ class spell_q12611_deathbolt : public SpellScript { PrepareSpellScript(spell_q12611_deathbolt); + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo( + { + SPELL_FREYAS_WARD, + SPELL_SEVENFOLD_RETRIBUTION, + SPELL_DEATHBOLT + }); + } + void HandleScriptEffect(SpellEffIndex /* effIndex */) { Unit* caster = GetCaster(); diff --git a/src/server/scripts/Northrend/zone_storm_peaks.cpp b/src/server/scripts/Northrend/zone_storm_peaks.cpp index 30b1438b6fd..e5ec9d5a6ad 100644 --- a/src/server/scripts/Northrend/zone_storm_peaks.cpp +++ b/src/server/scripts/Northrend/zone_storm_peaks.cpp @@ -1538,6 +1538,11 @@ class spell_q12823_remove_collapsing_cave_aura : public SpellScript { PrepareSpellScript(spell_q12823_remove_collapsing_cave_aura); + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo({ SPELL_COLLAPSING_CAVE }); + } + void HandleScriptEffect(SpellEffIndex /* effIndex */) { GetHitUnit()->RemoveAurasDueToSpell(SPELL_COLLAPSING_CAVE); -- cgit v1.2.3