Skip to content

Commit

Permalink
Sd2: Script for Frozen Siegebolt Spells
Browse files Browse the repository at this point in the history
Radius corrected
  • Loading branch information
Grz3s authored and killerwife committed Jul 5, 2024
1 parent 16fdfde commit f6721bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
16 changes: 16 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1085,4 +1100,5 @@ void AddSC_icecrown()
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");
RegisterSpellScript<FrozenSiegebolt>("spell_frozen_siegebolt");
}

0 comments on commit f6721bd

Please sign in to comment.