Ejemplo n.º 1
0
        // Handle SMSG_CARD_MORPH_INFO packet
        private static void HandleCardMorphInfo(Packet packet, ClientGame game)
        {
            var isMorph = packet.ReadBit();

            packet.ClearUnflushedBits();

            var player   = game.GetPlayer(packet.ReadUInt32());
            var cardGuid = packet.ReadPacketGuid();

            var cardTemplate = DataHolder.GetCard(packet.ReadUInt32());
            var mana         = packet.ReadByte();

            player.MorphCard(cardGuid, cardTemplate, mana, isMorph);
        }