From a89179c34d1b6f8652af495e3be08b05f2e2f448 Mon Sep 17 00:00:00 2001 From: Grz3s Date: Mon, 28 Oct 2024 20:13:37 +0100 Subject: [PATCH] Icecrown: Spell 58569 Scripted summon behaviour corrected --- sql/scriptdev2/spell.sql | 1 + .../AI/ScriptDevAI/scripts/northrend/icecrown.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index 2023edcd611..0547f36e7a8 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -914,6 +914,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (57853,'spell_master_summoners_staff'), (58418,'spell_portal_to_capital_city'), (58420,'spell_portal_to_capital_city'), +(58569,'spell_burning_skeleton'), (58984,'spell_shadowmeld'), (59275,'spell_summon_gauntlet_mobs_periodic_aura'), (59288,'spell_infragreenshield'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 50992dad100..2f2ae7a9212 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1273,6 +1273,17 @@ struct MasterSummonersStaff : public SpellScript, public AuraScript } }; +// 58569 - Burning Skeleton +struct BurningSkeleton : public SpellScript +{ + void OnSummon(Spell* spell, Creature* summon) const override + { + summon->SelectLevel(spell->GetCaster()->GetLevel()); + summon->SetFactionTemporary(spell->GetCaster()->GetFaction()); + summon->AI()->SetReactState(REACT_PASSIVE); + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1326,4 +1337,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_rapid_fire_harpoon"); RegisterSpellScript("spell_find_the_ancient_hero"); RegisterSpellScript("spell_master_summoners_staff"); + RegisterSpellScript("spell_burning_skeleton"); }