diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index f8cb35612ee..b95ae838da7 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -893,6 +893,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (57082,'spell_crystal_spikes'), (57083,'spell_crystal_spikes'), (57283,'spell_remove_mushroom_power'), +(57346,'spell_ride_vehicle_57346'), (57385,'spell_argent_cannon'), (57412,'spell_reckoning_bomb'), (57413,'spell_fitful_dream'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 3be603ed880..6e8a73aff99 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1119,6 +1119,18 @@ struct FitfulDream : public AuraScript } }; +// 57346 - Ride Vehicle +struct RideVehicle_57346 : public AuraScript +{ + void OnApply(Aura* aura, bool apply) const override + { + if (!apply && aura->GetRemoveMode() == AURA_REMOVE_BY_DEFAULT) + { + aura->GetCaster()->CastSpell(aura->GetCaster(), 45472, TRIGGERED_OLD_TRIGGERED); + } + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1160,4 +1172,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_reckoning_bomb"); RegisterSpellScript("spell_the_reckoning"); RegisterSpellScript("spell_fitful_dream"); + RegisterSpellScript("spell_ride_vehicle_57346"); }