azerothcore / azerothcore-wotlk

Complete Open Source and Modular solution for MMO
http://www.azerothcore.org
GNU Affero General Public License v3.0
6.63k stars 2.65k forks source link

[Skills] will not be unlearned after logout #12787

Open Meramaf opened 2 years ago

Meramaf commented 2 years ago

Current Behaviour

Many Skill abilities are not reset when you remove them. For example, if you change race, the console gets an error after relogging:

"Character GUID Full: 0x000000000000068a Type: Player Low: 1674 has skill 125 that does not exist."

Оr if you have learned a profession skill not through a trainer, and try to reset it, then after a relog, the profession does not disappear from the abilities tab.

Expected Blizzlike Behaviour

After a race change or skill reset, Skills must be reset as well as spells.

Source

No response

Steps to reproduce the problem

  1. Create Charecter
  2. Change Race .char changerace
  3. Relog back and look in the console

Extra Notes

No response

AC rev. hash/commit

https://github.com/azerothcore/azerothcore-wotlk/commit/b2e449fd15e38b4778a42650f388b8213cf62a6a

Operating system

Windows 10 x64, Ubuntu 20

Custom changes or Modules

No response

ChibaPet commented 2 years ago

FWIW, if you want to clear these out prior to some future fix:

delete from character_skills where guid = 1674 and skill = 125;