Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Core/Units: round rage gain values up so taking at least one point of…
Browse files Browse the repository at this point in the history
… damage will ensure you gain a rage point
  • Loading branch information
Ovahlord committed Dec 10, 2023
1 parent 6cb2bd9 commit 4f309c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Unit/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13456,7 +13456,7 @@ void Unit::RewardRage(uint32 baseRage, bool attacker)
}

addRage *= sWorld->getRate(RATE_POWER_RAGE_INCOME);
ModifyPower(POWER_RAGE, uint32(addRage * 10));
ModifyPower(POWER_RAGE, static_cast<uint32>(std::ceil(addRage) * 10));
}

void Unit::StopAttackFaction(uint32 faction_id)
Expand Down

0 comments on commit 4f309c1

Please sign in to comment.