mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user