Skip to content

Commit

Permalink
Icecrown: Fix issues due to script executing on multiple effects
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jun 23, 2024
1 parent 8816bec commit 5045ad1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5045ad1

Please sign in to comment.