diff options
author | megamage <none@none> | 2009-07-01 17:30:37 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-07-01 17:30:37 -0500 |
commit | 95ef8634c48a214c8e34be0359c854f176ed3bfc (patch) | |
tree | 2787560427b8b42fe0c486e10460f591310d602b /src | |
parent | 177297973af60e2253e001c6babe825b63a3c3c6 (diff) |
[8085] Apply talent rate to all talents points. Author: duckman
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index e8e45c96db4..71464587e18 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -20374,19 +20374,17 @@ void Player::AutoStoreLoot(uint8 bag, uint8 slot, uint32 loot_id, LootStore cons uint32 Player::CalculateTalentsPoints() const { - uint32 base_talent = getLevel() < 10 ? 0 : uint32((getLevel()-9)*sWorld.getRate(RATE_TALENT)); + uint32 base_talent = getLevel() < 10 ? 0 : getLevel()-9; if(getClass() != CLASS_DEATH_KNIGHT) - return base_talent; + return uint32(base_talent * sWorld.getRate(RATE_TALENT)); - uint32 talentPointsForLevel = - (getLevel() < 56 ? 0 : uint32((getLevel()-55)*sWorld.getRate(RATE_TALENT))) - + m_questRewardTalentCount; + uint32 talentPointsForLevel = getLevel() < 56 ? 0 : getLevel() - 55 + m_questRewardTalentCount; if(talentPointsForLevel > base_talent) talentPointsForLevel = base_talent; - return talentPointsForLevel; + return uint32(talentPointsForLevel * sWorld.getRate(RATE_TALENT)); } bool Player::IsAllowUseFlyMountsHere() const |