mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Unit): decrease swim speed (#5149)
This commit is contained in:
@@ -13483,8 +13483,15 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
|
||||
SetSpeed(mtype, AddPct(non_stack_bonus, (*itr)->GetAmount()), forced);
|
||||
return;
|
||||
}
|
||||
else if ((*itr)->GetAmount() > main_speed_mod)
|
||||
else if (
|
||||
// case: increase speed
|
||||
((*itr)->GetAmount() > 0 && (*itr)->GetAmount() > main_speed_mod) ||
|
||||
// case: decrease speed
|
||||
((*itr)->GetAmount() < 0 && (*itr)->GetAmount() < main_speed_mod)
|
||||
)
|
||||
{
|
||||
main_speed_mod = (*itr)->GetAmount();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user