ReadSpellCastLogData() public static method

public static ReadSpellCastLogData ( Packet packet ) : void
packet Packet
return void
        public static void ReadSpellDamageShield(Packet packet)
        {
            packet.ReadPackedGuid128("Attacker");
            packet.ReadPackedGuid128("Defender");
            packet.ReadInt32("TotalDamage");
            packet.ReadInt32("SpellID");
            packet.ReadPackedGuid128("Caster");
            packet.ReadInt32("LogAbsorbed");
            var bit76 = packet.ReadBit("HasLogData");

            if (bit76)
            {
                SpellHandler.ReadSpellCastLogData(ref packet);
            }
        }
        public static void HandleEnvirenmentalDamageLog(Packet packet)
        {
            packet.ReadPackedGuid128("Victim");

            packet.ReadByteE <EnvironmentDamage>("Type");

            packet.ReadInt32("Amount");
            packet.ReadInt32("Resisted");
            packet.ReadInt32("Absorbed");

            var bit76 = packet.ReadBit("HasLogData");

            if (bit76)
            {
                SpellHandler.ReadSpellCastLogData(packet);
            }
        }
Example #3
0
        public static void ReadSpellDamageShield(Packet packet)
        {
            packet.ReadPackedGuid128("Attacker");
            packet.ReadPackedGuid128("Defender");
            packet.ReadInt32 <SpellId>("SpellID");
            packet.ReadInt32("TotalDamage");
            packet.ReadInt32("OverKill");
            packet.ReadInt32("SchoolMask");
            packet.ReadInt32("LogAbsorbed");

            packet.ResetBitReader();

            var bit76 = packet.ReadBit("HasLogData");

            if (bit76)
            {
                SpellHandler.ReadSpellCastLogData(packet);
            }
        }