Skip to content

Commit

Permalink
Avoid VMA cards as default printing (not actually available for impor…
Browse files Browse the repository at this point in the history
…t in Arena)
  • Loading branch information
Senryoku committed May 3, 2023
1 parent 16b6100 commit 9b65a03
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 99 deletions.
7 changes: 7 additions & 0 deletions ManageCardData.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,17 @@ def selectCard(a, b):
return b
if b['set'] == 'j21' and int(b['collector_number']) >= 777:
return a
# Vintage Masters: Not importable in Arena.
if a['set'] == 'vma' and b['set'] != 'vma':
return b
if a['set'] != 'vma' and b['set'] == 'vma':
return a
# Only one of them is marked as a Primary card in Arena
if (a['name'], a['collector_number'], a['set'].lower()) in CardsCollectorNumberAndSet and (b['name'], b['collector_number'], b['set'].lower()) not in CardsCollectorNumberAndSet:
return a
if (a['name'], a['collector_number'], a['set'].lower()) not in CardsCollectorNumberAndSet and (b['name'], b['collector_number'], b['set'].lower()) in CardsCollectorNumberAndSet:
return b
# Prefer a card with an Arena ID
if 'arena_id' in a and 'arena_id' not in b:
return a
if 'arena_id' not in a and 'arena_id' in b:
Expand Down
Loading

0 comments on commit 9b65a03

Please sign in to comment.