mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Core/PacketIO: Reenabled most opcodes for WorldSession::DosProtection::GetMaxPacketCounterAllowed
This commit is contained in:
@@ -863,31 +863,3 @@ void WorldSession::HandlePetLearnTalent(WorldPacket& recvData)
|
||||
_player->LearnPetTalent(guid, talentId, requestedRank);
|
||||
_player->SendTalentsInfoData(true);*/
|
||||
}
|
||||
|
||||
void WorldSession::HandleLearnPreviewTalentsPet(WorldPacket& recvData)
|
||||
{
|
||||
/* TODO: 6.x remove pet talents (add pet specializations)
|
||||
TC_LOG_DEBUG("network", "CMSG_LEARN_PREVIEW_TALENTS_PET");
|
||||
|
||||
ObjectGuid guid;
|
||||
recvData >> guid;
|
||||
|
||||
uint32 talentsCount;
|
||||
recvData >> talentsCount;
|
||||
|
||||
uint32 talentId, talentRank;
|
||||
|
||||
// Client has max 19 talents, rounded up : 25
|
||||
uint32 const MaxTalentsCount = 25;
|
||||
|
||||
for (uint32 i = 0; i < talentsCount && i < MaxTalentsCount; ++i)
|
||||
{
|
||||
recvData >> talentId >> talentRank;
|
||||
|
||||
_player->LearnPetTalent(guid, talentId, talentRank);
|
||||
}
|
||||
|
||||
_player->SendTalentsInfoData(true);
|
||||
|
||||
recvData.rfinish();*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user