fix(Core/Spells): Do not send doubled learning packet if spell is lea… (#8140)

* fix(Core/Spells): Do not send doubled learning packet if spell is learned from skill.

Fixes #7764

* typo.
This commit is contained in:
UltraNix
2021-10-01 01:16:48 +02:00
committed by GitHub
parent e4c07cd864
commit 30e9ce350c
2 changed files with 6 additions and 6 deletions

View File

@@ -1629,7 +1629,7 @@ public:
void SendLearnPacket(uint32 spellId, bool learn);
bool addSpell(uint32 spellId, uint8 addSpecMask, bool updateActive, bool temporary = false, bool learnFromSkill = false);
bool _addSpell(uint32 spellId, uint8 addSpecMask, bool temporary, bool learnFromSkill = false);
void learnSpell(uint32 spellId, bool temporary = false);
void learnSpell(uint32 spellId, bool temporary = false, bool learnFromSkill = false);
void removeSpell(uint32 spellId, uint8 removeSpecMask, bool onlyTemporary);
void resetSpells();
void LearnCustomSpells();