Skip to content

Commit

Permalink
Icecrown: Spell 58569 Scripted
Browse files Browse the repository at this point in the history
summon behaviour corrected
  • Loading branch information
Grz3s committed Oct 28, 2024
1 parent fdcaf2b commit 402dfe0
Show file tree
Hide file tree
Showing 2 changed files with 13 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 @@ -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'),
Expand Down
12 changes: 12 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1326,4 +1337,5 @@ void AddSC_icecrown()
RegisterSpellScript<RapidFireHarpoon>("spell_rapid_fire_harpoon");
RegisterSpellScript<FindtheAncientHero>("spell_find_the_ancient_hero");
RegisterSpellScript<MasterSummonersStaff>("spell_master_summoners_staff");
RegisterSpellScript<BurningSkeleton>("spell_burning_skeleton");
}

0 comments on commit 402dfe0

Please sign in to comment.