mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11388] Don't add MOVEFLAG_ROOT in case creature has no moving state
need unroot unit before move or not use that flag at all
This commit is contained in:
parent
c4f2b30205
commit
eb678ce092
2 changed files with 3 additions and 3 deletions
|
|
@ -252,12 +252,12 @@ void Object::BuildMovementUpdate(ByteBuffer * data, uint16 updateFlags) const
|
|||
// (ok) most seem to have this
|
||||
unit->m_movementInfo.AddMovementFlag(MOVEFLAG_LEVITATING);
|
||||
|
||||
if (!unit->hasUnitState(UNIT_STAT_MOVING))
|
||||
/*if (!((Creature*)unit)->hasUnitState(UNIT_STAT_MOVING))
|
||||
{
|
||||
// (ok) possibly some "hover" mode
|
||||
unit->m_movementInfo.AddMovementFlag(MOVEFLAG_ROOT);
|
||||
}
|
||||
else
|
||||
else*/
|
||||
{
|
||||
if (((Creature*)unit)->IsMounted())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue