EskoSalaka/mtgtools

Art Series Cards missing in scryfall non-playable layouts

Opened this issue · 0 comments

dict of such cards have:
'layout': 'art_series'

    def normal_playable_cards(self):
        """Returns a new list of cards with all the special non-playable cards like emblems and tokens removed from
        this list. For magicthegathering.io api removes also cards which are backsides or flipsides of normal cards.

        Returns:
            PCardList: A new list of cards with all the special non-playable cards removed.
        """
        if self.api_type == 'scryfall':
            non_playable_layouts = ['vanguard', 'scheme', 'planar', 'emblem', 'token', 'double_faced_token']
            return self.filtered(lambda card: card.layout not in non_playable_layouts)
        else:
            non_playable_layouts = ['token', 'plane', 'scheme', 'phenomenon', 'vanguard', 'conspiracy']
            face_layouts = ['split', 'flip', 'double-faced', 'aftermath']

            return self.filtered(lambda card: card.layout not in face_layouts and self.name == self.names[0] or
                                 self.layout in non_playable_layouts)