@@ -10003,13 +10003,13 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1000310003 for (uint8 i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_ITEM_END; ++i)
1000410004 {
1000510005 pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10006- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10006+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1000710007 return true;
1000810008 }
1000910009 for (uint8 i = KEYRING_SLOT_START; i < CURRENCYTOKEN_SLOT_END; ++i)
1001010010 {
1001110011 pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10012- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10012+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1001310013 return true;
1001410014 }
1001510015 for (uint8 i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
@@ -10019,7 +10019,7 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1001910019 for (uint32 j = 0; j < pBag->GetBagSize(); ++j)
1002010020 {
1002110021 pItem = GetUseableItemByPos(i, j);
10022- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10022+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1002310023 return true;
1002410024 }
1002510025 }
@@ -11836,9 +11836,12 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
1183611836 m_weaponChangeTimer = spellProto->StartRecoveryTime;
1183711837
1183811838 GetSpellHistory()->AddGlobalCooldown(spellProto, m_weaponChangeTimer);
11839- WorldPacket data;
11840- GetSpellHistory()->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, cooldownSpell, 0);
11841- SendDirectMessage(&data);
11839+
11840+ WorldPackets::Spells::SpellCooldown spellCooldown;
11841+ spellCooldown.Caster = GetGUID();
11842+ spellCooldown.Flags = SPELL_COOLDOWN_FLAG_INCLUDE_GCD;
11843+ spellCooldown.SpellCooldowns.emplace_back(cooldownSpell, 0);
11844+ SendDirectMessage(spellCooldown.Write());
1184211845 }
1184311846 }
1184411847 }
@@ -20099,10 +20102,7 @@ void Player::SendAutoRepeatCancel(Unit* target)
2009920102
2010020103void Player::SendExplorationExperience(uint32 Area, uint32 Experience) const
2010120104{
20102- WorldPacket data(SMSG_EXPLORATION_EXPERIENCE, 8);
20103- data << uint32(Area);
20104- data << uint32(Experience);
20105- SendDirectMessage(&data);
20105+ SendDirectMessage(WorldPackets::Misc::ExplorationExperience(Experience, Area).Write());
2010620106}
2010720107
2010820108void Player::SendDungeonDifficulty(bool changeCurrentDifficuly, bool changeGroupDifficuly) const
0 commit comments