mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8085] Apply talent rate to all talents points.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
a656bc36fa
commit
d7a4665aaf
2 changed files with 5 additions and 7 deletions
|
|
@ -19464,19 +19464,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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8084"
|
||||
#define REVISION_NR "8085"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue