You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
dict of such cards have:
'layout': 'art_series'
The text was updated successfully, but these errors were encountered: