Core/Player: Extend action button value to uint64 to be able to hold battle pet guids

Port From (https://github.com/TrinityCore/TrinityCore/commit/f67cd38312014b13624dcb5fe1d117dac4892b7d)
This commit is contained in:
hondacrx
2022-09-24 13:50:39 -04:00
parent 1bd88829f2
commit 91e844e9dc
8 changed files with 31 additions and 25 deletions
@@ -160,10 +160,10 @@ namespace Game.Networking.Packets
Index = _worldPacket.ReadUInt8();
}
public uint GetButtonAction() { return (uint)(Action & 0x00000000FFFFFFFF); }
public uint GetButtonType() { return (uint)((Action & 0xFFFFFFFF00000000) >> 56); }
public uint GetButtonAction() { return (uint)(Action & 0x00FFFFFFFFFFFFFF); }
public uint GetButtonType() { return (uint)((Action & 0xFF00000000000000) >> 56); }
public ulong Action; // two packed public uint (action and type)
public ulong Action; // two packed values (action and type)
public byte Index;
}