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_FLIGHT_BACK:
|
||||||
case MOVE_RUN_BACK:
|
case MOVE_RUN_BACK:
|
||||||
case MOVE_SWIM_BACK:
|
case MOVE_SWIM_BACK:
|
||||||
break;
|
|
||||||
case MOVE_WALK:
|
case MOVE_WALK:
|
||||||
return;
|
break;
|
||||||
case MOVE_RUN:
|
case MOVE_RUN:
|
||||||
{
|
{
|
||||||
if (IsMounted()) // Use on mount auras
|
if (IsMounted()) // Use on mount auras
|
||||||
|
|||||||
@@ -3320,6 +3320,7 @@ void AuraEffect::HandleAuraModDecreaseSpeed(AuraApplication const* aurApp, uint8
|
|||||||
|
|
||||||
Unit* target = aurApp->GetTarget();
|
Unit* target = aurApp->GetTarget();
|
||||||
|
|
||||||
|
target->UpdateSpeed(MOVE_WALK, true);
|
||||||
target->UpdateSpeed(MOVE_RUN, true);
|
target->UpdateSpeed(MOVE_RUN, true);
|
||||||
target->UpdateSpeed(MOVE_SWIM, true);
|
target->UpdateSpeed(MOVE_SWIM, true);
|
||||||
target->UpdateSpeed(MOVE_FLIGHT, true);
|
target->UpdateSpeed(MOVE_FLIGHT, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user