mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-18 07:59:40 +01:00
Core/Items: corrected type of ItemInstance enchantment fields
This commit is contained in:
@@ -1561,7 +1561,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
|
||||
WorldPackets::Loot::DisenchantCredit disenchantCredit;
|
||||
disenchantCredit.Disenchanter = m_disenchantInfo.DisenchanterGUID;
|
||||
disenchantCredit.Item.ItemID = item->itemid;
|
||||
disenchantCredit.Item.RandomPropertiesID = item->randomPropertyId.Id;
|
||||
disenchantCredit.Item.RandomPropertiesID = item->randomPropertyId.Type == ItemRandomEnchantmentType::Property ? item->randomPropertyId.Id : -item->randomPropertyId.Id;
|
||||
disenchantCredit.Item.RandomPropertiesSeed = item->randomSuffix;
|
||||
BroadcastPacket(disenchantCredit.Write(), false);
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace WorldPackets
|
||||
void Initialize(::Item const* item);
|
||||
|
||||
uint32 ItemID = 0;
|
||||
uint32 RandomPropertiesSeed = 0;
|
||||
uint32 RandomPropertiesID = 0;
|
||||
int32 RandomPropertiesSeed = 0;
|
||||
int32 RandomPropertiesID = 0;
|
||||
|
||||
bool operator==(ItemInstance const& r) const;
|
||||
bool operator!=(ItemInstance const& r) const { return !(*this == r); }
|
||||
|
||||
Reference in New Issue
Block a user