From 7976f4cd31823aaaa1c453952d2593ab2dcb573e Mon Sep 17 00:00:00 2001 From: Grz3s Date: Sun, 28 Jul 2024 15:04:44 +0200 Subject: [PATCH] Spell: Z cord corrected for 59303 --- sql/scriptdev2/spell.sql | 1 + src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index ad0e7afc080..147d0e5b7e2 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -912,6 +912,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (58420,'spell_portal_to_capital_city'), (58984,'spell_shadowmeld'), (59275,'spell_summon_gauntlet_mobs_periodic_aura'), +(59303,'spell_summon_frost_wyrm'), (59317,'spell_teleporting_dalaran'), (59331,'spell_poisoned_spear'), (59481,'spell_loatheb_warn'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 6e8a73aff99..e55036c3aa3 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1131,6 +1131,15 @@ struct RideVehicle_57346 : public AuraScript } }; +// 59303 - Summon Frost Wyrm +struct SummonFrostWyrm : public SpellScript +{ + void OnDestTarget(Spell* spell) const override + { + spell->m_targets.m_destPos.z += 50.f; + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1173,4 +1182,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_the_reckoning"); RegisterSpellScript("spell_fitful_dream"); RegisterSpellScript("spell_ride_vehicle_57346"); + RegisterSpellScript("spell_summon_frost_wyrm"); }