Skip to content

Commit

Permalink
Spell: Add support for 56839 & 57418 Spells
Browse files Browse the repository at this point in the history
  • Loading branch information
Grz3s authored and killerwife committed Jun 16, 2024
1 parent bd63be9 commit 953a0e8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -887,10 +887,12 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(56430,'spell_arcane_bomb'),
(56683,'spell_grab_captured_crusader'),
(56684,'spell_drop_off_captured_crusader'),
(56839,'spell_to_icecrown_air_ship_a_summon_vehicle'),
(57073,'spell_drink'),
(57082,'spell_crystal_spikes'),
(57083,'spell_crystal_spikes'),
(57283,'spell_remove_mushroom_power'),
(57418,'spell_to_icecrown_air_ship_h_summon_vehicle'),
(57473,'spell_arcane_storm'),
(57491,'spell_flame_tsunami_damage'),
(57578,'spell_lava_strike'),
Expand Down
22 changes: 22 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,26 @@ struct DropOffCapturedCrusader : public SpellScript
}
};

// 56839 - To Icecrown Airship (A) - Summon Vehicle
struct ToIcecrownAirshipASummonVehicle : public SpellScript
{
void OnSummon(Spell* spell, Creature* summon) const override
{
summon->SelectLevel(spell->GetCaster()->GetLevel());
summon->SetFactionTemporary(spell->GetCaster()->GetFaction());
}
};

// 57418 - To Icecrown Airship (H) - Summon Vehicle
struct ToIcecrownAirshipHSummonVehicle : 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 @@ -1060,4 +1080,6 @@ void AddSC_icecrown()
RegisterSpellScript<spell_create_lance>("spell_create_lance");
RegisterSpellScript<GrabCapturedCrusader>("spell_grab_captured_crusader");
RegisterSpellScript<DropOffCapturedCrusader>("spell_drop_off_captured_crusader");
RegisterSpellScript<ToIcecrownAirshipASummonVehicle>("spell_to_icecrown_air_ship_a_summon_vehicle");
RegisterSpellScript<ToIcecrownAirshipHSummonVehicle>("spell_to_icecrown_air_ship_h_summon_vehicle");
}

0 comments on commit 953a0e8

Please sign in to comment.