fix(Scripts/Commands): Fixed command learn all my talents for chars… (#13529)

fix(Scripts/Commands): Fixed command `learn all my talents` for chars with 255 level.

Fixes #4788
This commit is contained in:
UltraNix
2022-10-29 12:12:35 +02:00
committed by GitHub
parent bcd9ad5066
commit 41d3df9fcb
3 changed files with 49 additions and 27 deletions

View File

@@ -1677,7 +1677,7 @@ public:
void BuildPlayerTalentsInfoData(WorldPacket* data);
void BuildPetTalentsInfoData(WorldPacket* data);
void SendTalentsInfoData(bool pet);
void LearnTalent(uint32 talentId, uint32 talentRank);
void LearnTalent(uint32 talentId, uint32 talentRank, bool command = false);
void LearnPetTalent(ObjectGuid petGuid, uint32 talentId, uint32 talentRank);
bool addTalent(uint32 spellId, uint8 addSpecMask, uint8 oldTalentRank);