fix(Core/Spells): Glyphs should send SMSG_LEARNED_SPELL/SMSG_REMOVED_… (#7161)
* fix(Core/Spells): Glyphs should send SMSG_LEARNED_SPELL/SMSG_REMOVED_SPELL packet in case of updating spell tooltips. Fixed #6323 * chore(Core/CharacterHandler): improve comment * chore(Core/SpellEffects): improve comment Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
parent
ed4cfd37f4
commit
ffdd990aa4
3 changed files with 21 additions and 1 deletions
|
|
@ -2670,6 +2670,21 @@ void Player::SendInitialSpells()
|
|||
++spellCount;
|
||||
}
|
||||
|
||||
// Added spells from glyphs too (needed by spell tooltips)
|
||||
for (uint8 i = 0; i < MAX_GLYPH_SLOT_INDEX; ++i)
|
||||
{
|
||||
if (uint32 glyph = GetGlyph(i))
|
||||
{
|
||||
if (GlyphPropertiesEntry const* glyphEntry = sGlyphPropertiesStore.LookupEntry(glyph))
|
||||
{
|
||||
data << uint32(glyphEntry->SpellId);
|
||||
data << uint16(0); // it's not slot id
|
||||
|
||||
++spellCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// xinef: we have to send talents, but not those on m_spells list
|
||||
for (PlayerTalentMap::iterator itr = m_talents.begin(); itr != m_talents.end(); ++itr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue