Core/PacketIO: Updated to 11.0.0

Port From (https://github.com/TrinityCore/TrinityCore/commit/e59eef5432c7b70679d33f4911c88d0f7d75fd39)
This commit is contained in:
Hondacrx
2024-09-02 18:44:55 -04:00
parent bd0d40fa13
commit f38ad4607e
74 changed files with 4980 additions and 3595 deletions
@@ -169,8 +169,8 @@ namespace Game.Networking.Packets
_worldPacket.WriteInt32(Powers.Count);
foreach (var power in Powers)
{
_worldPacket.WriteInt32(power.Power);
_worldPacket.WriteUInt8(power.PowerType);
_worldPacket.WriteInt32(power.Power);
}
}
@@ -180,16 +180,16 @@ namespace Game.Networking.Packets
class InterruptPowerRegen : ServerPacket
{
public int PowerType;
public sbyte PowerType;
public InterruptPowerRegen(PowerType powerType) : base(ServerOpcodes.InterruptPowerRegen, ConnectionType.Instance)
{
PowerType = (int)powerType;
PowerType = (sbyte)powerType;
}
public override void Write()
{
_worldPacket.WriteInt32(PowerType);
_worldPacket.WriteInt8(PowerType);
}
}