diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 83e8256d6..a0150543d 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -21374,16 +21374,10 @@ void Player::AutoStoreLoot(Loot& loot, bool broadcast, uint8 bag, uint8 slot) uint32 Player::CalculateTalentsPoints() const { - uint32 base_talent = getLevel() < 10 ? 0 : getLevel()-9; + uint32 base_level = getClass() == CLASS_DEATH_KNIGHT ? 55 : 9; + uint32 base_talent = getLevel() <= base_level ? 0 : getLevel() - base_level; - if(getClass() != CLASS_DEATH_KNIGHT) - return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT)); - - uint32 talentPointsForLevel = getLevel() < 56 ? 0 : getLevel() - 55; - talentPointsForLevel += m_questRewardTalentCount; - - if(talentPointsForLevel > base_talent) - talentPointsForLevel = base_talent; + uint32 talentPointsForLevel = base_talent + m_questRewardTalentCount; return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT)); } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2a5d31cf7..ff532b440 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11194" + #define REVISION_NR "11195" #endif // __REVISION_NR_H__