*when dismounting from a flying vehicle (and it was flying) you will get a pretty parachute

--HG--
branch : trunk
This commit is contained in:
Rat
2010-05-03 13:01:20 +02:00
parent f9ebcce8f6
commit a70d56b6f1

View File

@@ -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)