From 953a0e81f2a31da0a2e16ffd9f05f93db0ab46c7 Mon Sep 17 00:00:00 2001 From: Grz3s Date: Sun, 16 Jun 2024 12:31:15 +0200 Subject: [PATCH] Spell: Add support for 56839 & 57418 Spells --- sql/scriptdev2/spell.sql | 2 ++ .../scripts/northrend/icecrown.cpp | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index fae03aef03c..20e58c3bc1d 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -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'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index f63e9cb01c9..1eb79fbf06a 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -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; @@ -1060,4 +1080,6 @@ void AddSC_icecrown() RegisterSpellScript("spell_create_lance"); RegisterSpellScript("spell_grab_captured_crusader"); RegisterSpellScript("spell_drop_off_captured_crusader"); + RegisterSpellScript("spell_to_icecrown_air_ship_a_summon_vehicle"); + RegisterSpellScript("spell_to_icecrown_air_ship_h_summon_vehicle"); }