arcavios / scooze

A flexible data layer for applications working with Magic: the Gathering cards, decks, and tournaments.
Other
12 stars 1 forks source link

Update DecklistFormatter and Deck to filter out cards that are not on the given platform #50

Open iambroadband opened 1 year ago

iambroadband commented 1 year ago

Description

If a card isn't on Arena, then using the DecklistFormatter.ARENA should remove those cards from the output string. The same is true for MTGO. I believe that information should be stored on OracleCards.

We can use arena_id and mtgo_id to determine if the card is available on the given platform.

iambroadband commented 5 months ago

Test Data

Neither platform: https://scryfall.com/card/clu/37/lonis-genetics-expert Arena only: https://scryfall.com/card/yneo/29/forceful-cultivator MTGO only: https://scryfall.com/card/vis/118/river-boa