fix(Core/Movement): Fixed adding wrong flag on root. (#9803)

* fix(Core/Movement): Fixed addind wrong flag on root.

Fixes #5891
This commit is contained in:
UltraNix 2021-12-22 17:54:23 +01:00 committed by GitHub
parent 81cf9e3aa7
commit 07c93c2dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 2 deletions

View file

@ -17416,11 +17416,11 @@ void Unit::SetRooted(bool apply)
if (IsFalling())
{
AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
AddUnitMovementFlag(MOVEMENTFLAG_PENDING_ROOT);
}
else
{
AddUnitMovementFlag(MOVEMENTFLAG_PENDING_ROOT);
AddUnitMovementFlag(MOVEMENTFLAG_ROOT);
}
// Creature specific