mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-20 06:59:46 -04:00
Core/Players: Fixed trainers still displaying profession skills after learning
Closes #8103
This commit is contained in:
@@ -6429,7 +6429,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal)
|
||||
if (newVal < currVal)
|
||||
UpdateSkillEnchantments(id, currVal, newVal);
|
||||
// update step
|
||||
SetUInt32Value(PLAYER_SKILL_VALUE_INDEX(itr->second.pos), MAKE_PAIR32(id, step));
|
||||
SetUInt32Value(PLAYER_SKILL_INDEX(itr->second.pos), MAKE_PAIR32(id, step));
|
||||
// update value
|
||||
SetUInt32Value(PLAYER_SKILL_VALUE_INDEX(itr->second.pos), MAKE_SKILL_VALUE(newVal, maxVal));
|
||||
if (itr->second.uState != SKILL_NEW)
|
||||
|
||||
Reference in New Issue
Block a user