Core/Skills fixed another oversight when determining a skill save status

This commit is contained in:
Ovahlord committed 2025-06-21 03:01:29 +02:00
1 parent df676d3bc6
commit e750e1b335
1 file changed
+2 -2
+2 -2
View File
@@ -5520,7 +5520,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal)
UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL, id);
// update skill state
if (itr->second.uState == SKILL_UNCHANGED)
if (itr->second.uState == SKILL_UNCHANGED || itr->second.uState == SKILL_DELETED)
{
if (currVal == 0) // activated skill, mark as new to save into database
{
@@ -5551,7 +5551,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal)
_archaeology->Update();
}
}
else if (currVal) // Deactivate skill line
else if (currVal && !newVal) // Deactivate skill line
{
//remove enchantments needing this skill
UpdateSkillEnchantments(id, currVal, 0);