fix(Core/Movement): Properly updates MOVE_WALK in case of slowing auras. (#7371)

fixed #7301
This commit is contained in:
UltraNix
2021-08-18 11:59:13 +02:00
committed by GitHub
parent 167ad476bc
commit bd9b02a3af
2 changed files with 2 additions and 2 deletions

View File

@@ -13489,9 +13489,8 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
case MOVE_FLIGHT_BACK:
case MOVE_RUN_BACK:
case MOVE_SWIM_BACK:
break;
case MOVE_WALK:
return;
break;
case MOVE_RUN:
{
if (IsMounted()) // Use on mount auras

View File

@@ -3320,6 +3320,7 @@ void AuraEffect::HandleAuraModDecreaseSpeed(AuraApplication const* aurApp, uint8
Unit* target = aurApp->GetTarget();
target->UpdateSpeed(MOVE_WALK, true);
target->UpdateSpeed(MOVE_RUN, true);
target->UpdateSpeed(MOVE_SWIM, true);
target->UpdateSpeed(MOVE_FLIGHT, true);