Skip to content

Commit

Permalink
Icecrown: Add script for 57346
Browse files Browse the repository at this point in the history
Co-Authored-By: Grz3s <[email protected]>
  • Loading branch information
killerwife and Grz3s committed Jul 28, 2024
1 parent b950db4 commit 6d3aaa7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
13 changes: 13 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1160,4 +1172,5 @@ void AddSC_icecrown()
RegisterSpellScript<ReckoningBomb>("spell_reckoning_bomb");
RegisterSpellScript<TheReckoning>("spell_the_reckoning");
RegisterSpellScript<FitfulDream>("spell_fitful_dream");
RegisterSpellScript<RideVehicle_57346>("spell_ride_vehicle_57346");
}

0 comments on commit 6d3aaa7

Please sign in to comment.