From 5045ad1919a894f7b373d444ddfd696cbbcfb096 Mon Sep 17 00:00:00 2001 From: killerwife Date: Sun, 23 Jun 2024 13:41:10 +0200 Subject: [PATCH] Icecrown: Fix issues due to script executing on multiple effects --- src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 1eb79fbf06a..6615f655e60 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1019,8 +1019,11 @@ struct DropOffCapturedCrusader : public SpellScript return SPELL_CAST_OK; } - void OnEffectExecute(Spell* spell, SpellEffectIndex /*effIdx*/) const override + void OnEffectExecute(Spell* spell, SpellEffectIndex effIdx) const override { + if (effIdx != EFFECT_INDEX_0) + return; + if (VehicleInfo* vehicle = spell->GetCaster()->GetVehicleInfo()) vehicle->UnBoard(vehicle->GetPassenger(1), false); }