diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index 4693903d1a4..c29d95cd8b8 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -915,6 +915,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'), +(58524,'spell_control_eidolon_watcher'), (58569,'spell_burning_skeleton'), (58984,'spell_shadowmeld'), (59275,'spell_summon_gauntlet_mobs_periodic_aura'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index e97c7c8bce8..16957af8dc9 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1307,6 +1307,16 @@ struct RefurbishedDemolisher : public SpellScript } }; +// 58524 - Control Eidolon Watcher +struct ControlEidolonWatcher : 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; @@ -1367,4 +1377,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_master_summoners_staff"); RegisterSpellScript("spell_burning_skeleton"); RegisterSpellScript("spell_refurbished_demolisher"); + RegisterSpellScript("spell_control_eidolon_watcher"); }