diff options
author | Wyrserth <wyrserth@protonmail.com> | 2019-06-29 01:46:10 +0200 |
---|---|---|
committer | Wyrserth <wyrserth@protonmail.com> | 2019-06-29 01:46:54 +0200 |
commit | eb7a6391aafa5e618b2a565f0c2cfc2516dcee7e (patch) | |
tree | 6ac1e5f511243d8324253255a10f0c7ae537747f | |
parent | 37bcf343e2dd49acbe1865b1660e80392fab30e4 (diff) |
Core/Loot: fix issue that prevented players from rolling for an unique-category item while an equipped item shares the same unique-category.
-rw-r--r-- | src/server/game/Groups/Group.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp index 1291a12f032..2aeab843bf3 100644 --- a/src/server/game/Groups/Group.cpp +++ b/src/server/game/Groups/Group.cpp @@ -1022,7 +1022,7 @@ bool CanRollOnItem(const LootItem& item, Player const* player) return false; uint32 itemCount = player->GetItemCount(item.itemid); - if ((proto->MaxCount > 0 && static_cast<int32>(itemCount) >= proto->MaxCount) || (player->CanEquipUniqueItem(proto) != EQUIP_ERR_OK)) + if (proto->MaxCount > 0 && static_cast<int32>(itemCount) >= proto->MaxCount) return false; if (!item.AllowedForPlayer(player)) |