Core/Handlers: Handle CMSG_REQUEST_PET_INFO - this fixes when you /reload and the pet bar disappears (#23762)

This commit is contained in:
Artamedes
2019-09-04 02:41:18 -04:00
committed by Giacomo Pozzoni
parent 4074cb0f01
commit 6ebe1afeec
2 changed files with 5 additions and 8 deletions

View File

@@ -1390,14 +1390,6 @@ void WorldSession::HandleMoveSetCanFlyAckOpcode(WorldPacket& recvData)
_player->GetUnitBeingMoved()->m_movementInfo.flags = movementInfo.GetMovementFlags();
}
void WorldSession::HandleRequestPetInfoOpcode(WorldPacket& /*recvData */)
{
/*
TC_LOG_DEBUG("network", "WORLD: CMSG_REQUEST_PET_INFO");
recvData.hexlike();
*/
}
void WorldSession::HandleSetTaxiBenchmarkOpcode(WorldPacket& recvData)
{
TC_LOG_DEBUG("network", "WORLD: CMSG_SET_TAXI_BENCHMARK_MODE");

View File

@@ -885,3 +885,8 @@ void WorldSession::HandleLearnPreviewTalentsPet(WorldPacket& recvData)
recvData.rfinish();
}
void WorldSession::HandleRequestPetInfoOpcode(WorldPacket& /*recvPacket*/)
{
GetPlayer()->PetSpellInitialize();
}