Skip to content

Commit

Permalink
Icecrown: Spell 59724 Scripted
Browse files Browse the repository at this point in the history
  • Loading branch information
Grz3s committed Nov 6, 2024
1 parent a89179c commit 87cb97e
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 @@ -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'),
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 @@ -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;
Expand Down Expand Up @@ -1338,4 +1348,5 @@ void AddSC_icecrown()
RegisterSpellScript<FindtheAncientHero>("spell_find_the_ancient_hero");
RegisterSpellScript<MasterSummonersStaff>("spell_master_summoners_staff");
RegisterSpellScript<BurningSkeleton>("spell_burning_skeleton");
RegisterSpellScript<RefurbishedDemolisher>("spell_refurbished_demolisher");
}

0 comments on commit 87cb97e

Please sign in to comment.