mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
fix(Core/Movement): Properly updates MOVE_WALK in case of slowing auras. (#7371)
fixed #7301
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user