Skip to content

Commit

Permalink
filter items with > 5 ilvl above player level
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Feb 2, 2024
1 parent cbc97c2 commit 24108d4
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 24108d4

Please sign in to comment.