Skip to content

Commit

Permalink
Icecrown: Spell 58524 Scripted
Browse files Browse the repository at this point in the history
  • Loading branch information
Grz3s committed Nov 22, 2024
1 parent d77d726 commit 2e4fc8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
11 changes: 11 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1367,4 +1377,5 @@ void AddSC_icecrown()
RegisterSpellScript<MasterSummonersStaff>("spell_master_summoners_staff");
RegisterSpellScript<BurningSkeleton>("spell_burning_skeleton");
RegisterSpellScript<RefurbishedDemolisher>("spell_refurbished_demolisher");
RegisterSpellScript<ControlEidolonWatcher>("spell_control_eidolon_watcher");
}

0 comments on commit 2e4fc8d

Please sign in to comment.