Core/PacketIO: updated CMSG_SUMMON_RESPONSE

This commit is contained in:
MitchesD
2015-07-16 22:01:22 +02:00
parent 8340ea4566
commit cf9fa507d0
5 changed files with 22 additions and 9 deletions

View File

@@ -511,17 +511,12 @@ void WorldSession::HandleMovementAckMessage(WorldPackets::Movement::MovementAckM
GetPlayer()->ValidateMovementInfo(&movementAck.Ack.movementInfo);
}
void WorldSession::HandleSummonResponseOpcode(WorldPacket& recvData)
void WorldSession::HandleSummonResponseOpcode(WorldPackets::Movement::SummonResponse& packet)
{
if (!_player->IsAlive() || _player->IsInCombat())
return;
ObjectGuid summoner_guid;
bool agree;
recvData >> summoner_guid;
recvData >> agree;
_player->SummonIfPossible(agree);
_player->SummonIfPossible(packet.Accept);
}
void WorldSession::HandleSetCollisionHeightAck(WorldPackets::Movement::MoveSetCollisionHeightAck& setCollisionHeightAck)