Core/Players: update skill for level is not needed anymore
This commit is contained in:
commit
05d7d2b3c3
1 file changed
+1
-3
@@ -2844,8 +2844,6 @@ void Player::GiveLevel(uint8 level)
|
||||
|
||||
SetLevel(level);
|
||||
|
||||
UpdateSkillsForLevel();
|
||||
|
||||
// save base values (bonuses already included in stored stats
|
||||
for (uint8 i = STAT_STRENGTH; i < MAX_STATS; ++i)
|
||||
SetCreateStat(Stats(i), info.stats[i]);
|
||||
@@ -5886,7 +5884,7 @@ void Player::UpdateSkillsForLevel()
|
||||
uint16 field = itr->second.pos / 2;
|
||||
uint8 offset = itr->second.pos & 1; // itr->second.pos % 2
|
||||
|
||||
//uint16 val = GetUInt16Value(PLAYER_SKILL_RANK_0 + field, offset);
|
||||
uint16 val = GetUInt16Value(PLAYER_SKILL_RANK_0 + field, offset);
|
||||
uint16 max = GetUInt16Value(PLAYER_SKILL_MAX_RANK_0 + field, offset);
|
||||
|
||||
/// update only level dependent max skill values
|
||||
|
||||
Reference in new issue
Block a user