Skip to content

Commit

Permalink
fix: correctly calculate xp for dtrh and add of 2nd copy
Browse files Browse the repository at this point in the history
  • Loading branch information
fspoettel committed Feb 2, 2025
1 parent 13deb65 commit a4157ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/lib/deck-upgrades.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function calculateXpSpent(
// (unless it's an exiled card that is re-added)
} else if (modifierFlags.downTheRabbitHole && !upgradedFrom) {
const exiled = next.exileSlots[card.code] ?? 0;
const added = (next.slots[card.code] ?? 0) - exiled;
const added = quantity - exiled;

if (added > 0) {
cost += card.myriad ? 1 : added;
Expand Down

0 comments on commit a4157ad

Please sign in to comment.