@@ -10012,13 +10012,13 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1001210012 for (uint8 i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_ITEM_END; ++i)
1001310013 {
1001410014 pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10015- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10015+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1001610016 return true;
1001710017 }
1001810018 for (uint8 i = KEYRING_SLOT_START; i < CURRENCYTOKEN_SLOT_END; ++i)
1001910019 {
1002010020 pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10021- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10021+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1002210022 return true;
1002310023 }
1002410024 for (uint8 i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
@@ -10028,7 +10028,7 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1002810028 for (uint32 j = 0; j < pBag->GetBagSize(); ++j)
1002910029 {
1003010030 pItem = GetUseableItemByPos(i, j);
10031- if (pItem && IsTotemCategoryCompatiableWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10031+ if (pItem && IsTotemCategoryCompatibleWith (pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1003210032 return true;
1003310033 }
1003410034 }
@@ -11845,9 +11845,12 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
1184511845 m_weaponChangeTimer = spellProto->StartRecoveryTime;
1184611846
1184711847 GetSpellHistory()->AddGlobalCooldown(spellProto, m_weaponChangeTimer);
11848- WorldPacket data;
11849- GetSpellHistory()->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, cooldownSpell, 0);
11850- SendDirectMessage(&data);
11848+
11849+ WorldPackets::Spells::SpellCooldown spellCooldown;
11850+ spellCooldown.Caster = GetGUID();
11851+ spellCooldown.Flags = SPELL_COOLDOWN_FLAG_INCLUDE_GCD;
11852+ spellCooldown.SpellCooldowns.emplace_back(cooldownSpell, 0);
11853+ SendDirectMessage(spellCooldown.Write());
1185111854 }
1185211855 }
1185311856 }
@@ -20108,10 +20111,7 @@ void Player::SendAutoRepeatCancel(Unit* target)
2010820111
2010920112void Player::SendExplorationExperience(uint32 Area, uint32 Experience) const
2011020113{
20111- WorldPacket data(SMSG_EXPLORATION_EXPERIENCE, 8);
20112- data << uint32(Area);
20113- data << uint32(Experience);
20114- SendDirectMessage(&data);
20114+ SendDirectMessage(WorldPackets::Misc::ExplorationExperience(Experience, Area).Write());
2011520115}
2011620116
2011720117void Player::SendDungeonDifficulty(bool changeCurrentDifficuly, bool changeGroupDifficuly) const
0 commit comments