Core/Items: corrected type of ItemInstance enchantment fields
This commit is contained in:
1 parent
fe909f8234
commit
9aeaf346c2
2 files changed
+3
-3
No files matched your search
@@ -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