mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 15:17:27 +01:00
Core/Players: restore enchantment update handling if a skill is being reduced by game masters
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user