From 87cb97e720ffd03a4c4b3fb3a0b715e80bb4956f Mon Sep 17 00:00:00 2001 From: Grz3s Date: Wed, 6 Nov 2024 23:39:08 +0100 Subject: [PATCH] Icecrown: Spell 59724 Scripted --- sql/scriptdev2/spell.sql | 1 + .../AI/ScriptDevAI/scripts/northrend/icecrown.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index 0547f36e7a8..30a2a3d8343 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -922,6 +922,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (59317,'spell_teleporting_dalaran'), (59331,'spell_poisoned_spear'), (59481,'spell_loatheb_warn'), +(59724,'spell_refurbished_demolisher'), (59743,'spell_void_shift_aura'), (59820,'spell_drained_aura'), (59827,'spell_impaling_charge'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 2f2ae7a9212..bbe61729321 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1284,6 +1284,16 @@ struct BurningSkeleton : public SpellScript } }; +// 59724 - Refurbished Demolisher +struct RefurbishedDemolisher : public SpellScript +{ + void OnSummon(Spell* spell, Creature* summon) const override + { + summon->SelectLevel(spell->GetCaster()->GetLevel()); + summon->SetFactionTemporary(spell->GetCaster()->GetFaction()); + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1338,4 +1348,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_find_the_ancient_hero"); RegisterSpellScript("spell_master_summoners_staff"); RegisterSpellScript("spell_burning_skeleton"); + RegisterSpellScript("spell_refurbished_demolisher"); }