From f6721bd98694d4de30086fe20e712d1b0fb48783 Mon Sep 17 00:00:00 2001 From: Grz3s Date: Fri, 5 Jul 2024 17:28:50 +0200 Subject: [PATCH] Sd2: Script for Frozen Siegebolt Spells Radius corrected --- sql/scriptdev2/spell.sql | 4 ++++ .../ScriptDevAI/scripts/northrend/icecrown.cpp | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index a70f57d55e0..f7327497d29 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -896,7 +896,11 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (57418,'spell_to_icecrown_air_ship_h_summon_vehicle'), (57473,'spell_arcane_storm'), (57491,'spell_flame_tsunami_damage'), +(57534,'spell_frozen_siegebolt'), (57578,'spell_lava_strike'), +(57650,'spell_frozen_siegebolt'), +(57666,'spell_frozen_siegebolt'), +(57667,'spell_frozen_siegebolt'), (57669,'spell_replenishment'), (58418,'spell_portal_to_capital_city'), (58420,'spell_portal_to_capital_city'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 6615f655e60..2367680d226 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1049,6 +1049,21 @@ struct ToIcecrownAirshipHSummonVehicle : public SpellScript } }; +// 57534 - Frozen Siegebolt +// 57650 - Frozen Siegebolt +// 57666 - Frozen Siegebolt +// 57667 - Frozen Siegebolt + +struct FrozenSiegebolt : public SpellScript +{ + void OnRadiusCalculate(Spell* /*spell*/, SpellEffectIndex effIdx, bool /*targetB*/, float& radius) const override + { + if (effIdx == EFFECT_INDEX_0) + radius = 100.f; + } +}; + + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1085,4 +1100,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_drop_off_captured_crusader"); RegisterSpellScript("spell_to_icecrown_air_ship_a_summon_vehicle"); RegisterSpellScript("spell_to_icecrown_air_ship_h_summon_vehicle"); + RegisterSpellScript("spell_frozen_siegebolt"); }