Core/Unit: Fix some movement issues when leaving vehicles introduced in dce0a7d184
Sorry about that.
This commit is contained in:
@@ -1396,7 +1396,7 @@ struct ScalingStatValuesEntry
|
||||
uint32 spellPower; // 16 spell power for level
|
||||
uint32 ssdMultiplier2; // 17 there's data from 3.1 dbc ssdMultiplier[3]
|
||||
uint32 ssdMultiplier3; // 18 3.3
|
||||
uint32 armorMod2[5]; // 20-23 Armor for level
|
||||
uint32 armorMod2[5]; // 19-23 Armor for level
|
||||
|
||||
uint32 getssdMultiplier(uint32 mask) const
|
||||
{
|
||||
|
||||
@@ -17043,6 +17043,8 @@ void Unit::_ExitVehicle(Position const* exitPosition)
|
||||
else
|
||||
pos = *exitPosition;
|
||||
|
||||
AddUnitState(UNIT_STATE_MOVE);
|
||||
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
ToPlayer()->SetFallInformation(0, GetPositionZ());
|
||||
else if (HasUnitMovementFlag(MOVEMENTFLAG_ROOT))
|
||||
|
||||
Reference in New Issue
Block a user