aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Vehicle.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Vehicle.cpp b/src/game/Vehicle.cpp
index f802bcfb04d..ed50bfe651b 100644
--- a/src/game/Vehicle.cpp
+++ b/src/game/Vehicle.cpp
@@ -342,8 +342,9 @@ void Vehicle::RemovePassenger(Unit *unit)
if (me->GetTypeId() == TYPEID_UNIT && me->ToCreature()->IsAIEnabled)
me->ToCreature()->AI()->PassengerBoarded(unit, seat->first, false);
- // only for flyable vehicles?
- //CastSpell(this, 45472, true); // Parachute
+ // only for flyable vehicles
+ if (unit->HasUnitMovementFlag(MOVEMENTFLAG_FLYING))
+ me->CastSpell(unit, 45472, true); // Parachute
}
void Vehicle::RelocatePassengers(float x, float y, float z, float ang)