@@ -10015,13 +10015,13 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1001510015 for (uint8 i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_ITEM_END; ++i)
1001610016 {
1001710017 pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10018- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10018+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1001910019 return true;
1002010020 }
1002110021 for (uint8 i = KEYRING_SLOT_START; i < CURRENCYTOKEN_SLOT_END; ++i)
1002210022 {
1002310023 pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10024- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10024+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1002510025 return true;
1002610026 }
1002710027 for (uint8 i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
@@ -10031,7 +10031,7 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1003110031 for (uint32 j = 0; j < pBag->GetBagSize(); ++j)
1003210032 {
1003310033 pItem = GetUseableItemByPos(i, j);
10034- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10034+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1003510035 return true;
1003610036 }
1003710037 }
@@ -11848,9 +11848,12 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
1184811848 m_weaponChangeTimer = spellProto->StartRecoveryTime;
1184911849
1185011850 GetSpellHistory()->AddGlobalCooldown(spellProto, m_weaponChangeTimer);
11851- WorldPacket data;
11852- GetSpellHistory()->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, cooldownSpell, 0);
11853- SendDirectMessage(&data);
11851+
11852+ WorldPackets::Spells::SpellCooldown spellCooldown;
11853+ spellCooldown.Caster = GetGUID();
11854+ spellCooldown.Flags = SPELL_COOLDOWN_FLAG_INCLUDE_GCD;
11855+ spellCooldown.SpellCooldowns.emplace_back(cooldownSpell, 0);
11856+ SendDirectMessage(spellCooldown.Write());
1185411857 }
1185511858 }
1185611859 }
@@ -20111,10 +20114,7 @@ void Player::SendAutoRepeatCancel(Unit* target)
2011120114
2011220115void Player::SendExplorationExperience(uint32 Area, uint32 Experience) const
2011320116{
20114- WorldPacket data(SMSG_EXPLORATION_EXPERIENCE, 8);
20115- data << uint32(Area);
20116- data << uint32(Experience);
20117- SendDirectMessage(&data);
20117+ SendDirectMessage(WorldPackets::Misc::ExplorationExperience(Experience, Area).Write());
2011820118}
2011920119
2012020120void Player::SendDungeonDifficulty(bool changeCurrentDifficuly, bool changeGroupDifficuly) const
0 commit comments