Core/Players: restore enchantment update handling if a skill is being reduced by game masters

This commit is contained in:
Ovahlord
2020-01-28 21:27:51 +01:00
parent be5ccbccef
commit d4faba7897

View File

@@ -5796,6 +5796,10 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal)
// Activate and update skill line
if (newVal)
{
// if skill value is going down, update enchantments before setting the new value
if (newVal < currVal)
UpdateSkillEnchantments(id, currVal, newVal);
// update step
SetSkillStep(itr->second.pos, step);
// update value