Fix (Core/Movement): During escort movement, do not stop moving if unit is casting channeled spells. (#9815)

Fixes #9286
This commit is contained in:
UltraNix
2022-01-03 21:06:41 +01:00
committed by GitHub
parent b7dcf93be4
commit d90e368166
2 changed files with 2 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ bool EscortMovementGenerator<T>::DoUpdate(T* unit, uint32 /*diff*/)
if (unit->HasUnitState(UNIT_STATE_NOT_MOVE) || unit->IsMovementPreventedByCasting())
{
unit->StopMoving();
unit->ClearUnitState(UNIT_STATE_ROAMING_MOVE);
return true;
}