aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Northrend
diff options
context:
space:
mode:
authoroffl <11556157+offl@users.noreply.github.com>2025-06-10 20:01:29 +0300
committerGitHub <noreply@github.com>2025-06-10 19:01:29 +0200
commit0756fb956c4319d7a49fe4cb06d2c1c1ee894fd5 (patch)
tree1268165167e03f2df31374dab62cb0314aa24185 /src/server/scripts/Northrend
parentb4e749a7fa34bcbb4d7320c93804a643291ef6b9 (diff)
Scripts/Spells: Get rid of some database spell scripts (#30925)
Diffstat (limited to 'src/server/scripts/Northrend')
-rw-r--r--src/server/scripts/Northrend/zone_storm_peaks.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/zone_storm_peaks.cpp b/src/server/scripts/Northrend/zone_storm_peaks.cpp
index 8011dee62a3..ef09f518892 100644
--- a/src/server/scripts/Northrend/zone_storm_peaks.cpp
+++ b/src/server/scripts/Northrend/zone_storm_peaks.cpp
@@ -97,6 +97,27 @@ struct npc_brunnhildar_prisoner : public ScriptedAI
}
};
+// 55048 - Free Brunnhildar Prisoner
+class spell_storm_peaks_free_brunnhildar_prisoner : public SpellScript
+{
+ PrepareSpellScript(spell_storm_peaks_free_brunnhildar_prisoner);
+
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo({ SPELL_ICE_PRISON });
+ }
+
+ void HandleScript(SpellEffIndex /*effIndex*/)
+ {
+ GetCaster()->RemoveAurasDueToSpell(SPELL_ICE_PRISON);
+ }
+
+ void Register() override
+ {
+ OnEffectHit += SpellEffectFn(spell_storm_peaks_free_brunnhildar_prisoner::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
+ }
+};
+
/*######
## npc_freed_protodrake
######*/
@@ -1250,6 +1271,7 @@ class spell_storm_peaks_call_of_earth : public SpellScript
void AddSC_storm_peaks()
{
RegisterCreatureAI(npc_brunnhildar_prisoner);
+ RegisterSpellScript(spell_storm_peaks_free_brunnhildar_prisoner);
RegisterCreatureAI(npc_freed_protodrake);
RegisterCreatureAI(npc_icefang);
RegisterCreatureAI(npc_hyldsmeet_protodrake);