Skip to content

Commit

Permalink
not apply % to unmodifiable magic items, closes #1271
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Jan 24, 2024
1 parent 38ca966 commit 90f4a0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion renderer/src/web/price-check/filters/create-stat-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ export function calculatedStatToFilter (
}

if (roll && !filter.option) {
if (
if (item.rarity === ItemRarity.Magic && (
item.isUnmodifiable || item.isCorrupted || item.isMirrored
)) {
percent = 0
} else if (
item.rarity === ItemRarity.Unique ||
calc.sources.some(({ modifier }) => modifier.info.tier === 1 && modifier.info.type === ModifierType.Fractured)
) {
Expand Down

0 comments on commit 90f4a0f

Please sign in to comment.