Core/PacketIO: Updated and enabled CMSG_CAST_SPELL, SMSG_SPELL_START and SMSG_SPELL_GO

This commit is contained in:
Shauren committed 2012-07-17 21:36:40 +02:00
1 parent 953f093920
commit 47357e58ea
4 files changed
+57 -7

No files matched your search

+21
View File
@@ -62,6 +62,27 @@ void WorldSession::HandleClientCastFlags(WorldPacket& recvPacket, uint8 castFlag
ReadMovementInfo(recvPacket, &movementInfo);*/
}
}
else if (castFlags & 0x8) // Archaeology
{
uint32 count, entry, usedCount;
uint8 type;
recvPacket >> count;
for (uint32 i = 0; i < count; ++i)
{
recvPacket >> type;
switch (type)
{
case 2: // Keystones
recvPacket >> entry; // Item id
recvPacket >> usedCount; // Item count
break;
case 1: // Fragments
recvPacket >> entry; // Currency id
recvPacket >> usedCount; // Currency count
break;
}
}
}
}
void WorldSession::HandleUseItemOpcode(WorldPacket& recvPacket)