Core/PacketIO: Send item flags in auction items
Port From (https://github.com/TrinityCore/TrinityCore/commit/e047d14a2fd5c77061f473c3d5a3a45c6c5f493b)
This commit is contained in:
@@ -1612,7 +1612,7 @@ namespace Game
|
|||||||
|
|
||||||
// all (not optional<>)
|
// all (not optional<>)
|
||||||
auctionItem.Count = (int)GetTotalItemCount();
|
auctionItem.Count = (int)GetTotalItemCount();
|
||||||
auctionItem.Flags = 0;
|
auctionItem.Flags = Items[0].m_itemData.DynamicFlags;
|
||||||
auctionItem.AuctionID = Id;
|
auctionItem.AuctionID = Id;
|
||||||
auctionItem.Owner = Owner;
|
auctionItem.Owner = Owner;
|
||||||
|
|
||||||
|
|||||||
@@ -900,7 +900,7 @@ namespace Game.Network.Packets
|
|||||||
public int Count;
|
public int Count;
|
||||||
public int Charges;
|
public int Charges;
|
||||||
public List<ItemEnchantData> Enchantments = new List<ItemEnchantData>();
|
public List<ItemEnchantData> Enchantments = new List<ItemEnchantData>();
|
||||||
public int Flags;
|
public uint Flags;
|
||||||
public uint AuctionID;
|
public uint AuctionID;
|
||||||
public ObjectGuid Owner;
|
public ObjectGuid Owner;
|
||||||
public Optional<ulong> MinBid;
|
public Optional<ulong> MinBid;
|
||||||
@@ -944,7 +944,7 @@ namespace Game.Network.Packets
|
|||||||
|
|
||||||
data.WriteInt32(Count);
|
data.WriteInt32(Count);
|
||||||
data.WriteInt32(Charges);
|
data.WriteInt32(Charges);
|
||||||
data.WriteInt32(Flags);
|
data.WriteUInt32(Flags);
|
||||||
data.WriteUInt32(AuctionID);
|
data.WriteUInt32(AuctionID);
|
||||||
data.WritePackedGuid(Owner);
|
data.WritePackedGuid(Owner);
|
||||||
data.WriteInt32(DurationLeft);
|
data.WriteInt32(DurationLeft);
|
||||||
|
|||||||
Reference in New Issue
Block a user