Core/Unit: Check if NPC is on a transport before sending StopMoving() -packet (normally shipped when trying to speak to moving NPCs) - fixes creatures falling off boats etc.
Thanks to Socolin for hunting down and patching this annoying bug. --HG-- branch : trunk
This commit is contained in:
@@ -14482,7 +14482,8 @@ void Unit::StopMoving()
|
|||||||
// Relocate(GetPositionX(), GetPositionY(), z);
|
// Relocate(GetPositionX(), GetPositionY(), z);
|
||||||
//Relocate(GetPositionX(), GetPositionY(),GetPositionZ());
|
//Relocate(GetPositionX(), GetPositionY(),GetPositionZ());
|
||||||
|
|
||||||
SendMonsterStop();
|
if (!(GetUnitMovementFlags() & MOVEMENTFLAG_ONTRANSPORT))
|
||||||
|
SendMonsterStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::SendMovementFlagUpdate()
|
void Unit::SendMovementFlagUpdate()
|
||||||
|
|||||||
Reference in New Issue
Block a user