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())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11387"
|
||||
#define REVISION_NR "11388"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue