Core/Players: update skill for level is not needed anymore

This commit is contained in:
Aokromes committed 2017-12-02 07:51:19 +00:00
commit 05d7d2b3c3
1 file changed
+1 -3
+1 -3
View File
@@ -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