Skip to content

Commit

Permalink
update armor type filters
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Dec 31, 2024
1 parent cf2cc4d commit 2509c42
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ui/core/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1217,13 +1217,7 @@ export class Player<SpecType extends Spec> {
}

if (Player.ARMOR_SLOTS.includes(slot)) {
itemData = filterItems(itemData, item => {
if (!filters.armorTypes.includes(item.armorType)) {
return false;
}

return true;
});
itemData = filterItems(itemData, item => filters.armorTypes.includes(item.armorType))
} else if (Player.WEAPON_SLOTS.includes(slot)) {
itemData = filterItems(itemData, item => {
if (!filters.weaponTypes.includes(item.weaponType)) {
Expand Down

0 comments on commit 2509c42

Please sign in to comment.