Skip to content

Commit

Permalink
Merge pull request #16 from wowsims/item-filter-ilvl
Browse files Browse the repository at this point in the history
Filter items with > 5 ilvl above player level
  • Loading branch information
kayla-glick authored Feb 2, 2024
2 parents 0830ba5 + 24108d4 commit 1509cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/core/proto_utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,8 @@ export function canEquipItem<SpecType extends Spec>(player: Player<SpecType>, it
return false;
}

if (item.requiresLevel > player.getLevel()){
// end-game SoD items seem to be at-most 5 ilvl above the player level
if (item.requiresLevel > player.getLevel() || item.ilvl - 5 > player.getLevel()){
return false
}

Expand Down

0 comments on commit 1509cfa

Please sign in to comment.