@@ -10023,13 +10023,13 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1002310023 for (uint8 i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_ITEM_END; ++i)
1002410024 {
1002510025 pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10026- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10026+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1002710027 return true;
1002810028 }
1002910029 for (uint8 i = KEYRING_SLOT_START; i < CURRENCYTOKEN_SLOT_END; ++i)
1003010030 {
1003110031 pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10032- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10032+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1003310033 return true;
1003410034 }
1003510035 for (uint8 i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
@@ -10039,7 +10039,7 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1003910039 for (uint32 j = 0; j < pBag->GetBagSize(); ++j)
1004010040 {
1004110041 pItem = GetUseableItemByPos(i, j);
10042- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10042+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1004310043 return true;
1004410044 }
1004510045 }
@@ -11856,9 +11856,12 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
1185611856 m_weaponChangeTimer = spellProto->StartRecoveryTime;
1185711857
1185811858 GetSpellHistory()->AddGlobalCooldown(spellProto, m_weaponChangeTimer);
11859- WorldPacket data;
11860- GetSpellHistory()->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, cooldownSpell, 0);
11861- SendDirectMessage(&data);
11859+
11860+ WorldPackets::Spells::SpellCooldown spellCooldown;
11861+ spellCooldown.Caster = GetGUID();
11862+ spellCooldown.Flags = SPELL_COOLDOWN_FLAG_INCLUDE_GCD;
11863+ spellCooldown.SpellCooldowns.emplace_back(cooldownSpell, 0);
11864+ SendDirectMessage(spellCooldown.Write());
1186211865 }
1186311866 }
1186411867 }
@@ -20125,10 +20128,7 @@ void Player::SendAutoRepeatCancel(Unit* target)
2012520128
2012620129void Player::SendExplorationExperience(uint32 Area, uint32 Experience) const
2012720130{
20128- WorldPacket data(SMSG_EXPLORATION_EXPERIENCE, 8);
20129- data << uint32(Area);
20130- data << uint32(Experience);
20131- SendDirectMessage(&data);
20131+ SendDirectMessage(WorldPackets::Misc::ExplorationExperience(Experience, Area).Write());
2013220132}
2013320133
2013420134void Player::SendDungeonDifficulty(bool changeCurrentDifficuly, bool changeGroupDifficuly) const
0 commit comments