fix(Core/Movement): Don't move for change in orientation only (#19687)
Changing only the orientation of a unit also flags it as if it were moving, which causes spells to be interrupted.
This commit is contained in:
parent
5d4c85143c
commit
62b825f8bd
2 changed files with 4 additions and 2 deletions
|
|
@ -101,7 +101,9 @@ namespace Movement
|
|||
moveFlags = (moveFlags & ~(MOVEMENTFLAG_FORWARD)) | MOVEMENTFLAG_BACKWARD;
|
||||
}
|
||||
|
||||
if (moveFlags & MOVEMENTFLAG_ROOT)
|
||||
bool isOrientationOnly = args.path.size() == 2 && args.path[0] == args.path[1];
|
||||
|
||||
if ((moveFlags & MOVEMENTFLAG_ROOT) || isOrientationOnly)
|
||||
moveFlags &= ~MOVEMENTFLAG_MASK_MOVING;
|
||||
|
||||
if (!args.HasVelocity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue