add support to class cards

With the new expansion "forgotten realms", they added a new type of cards: class cards. This is one example

[cleric class json response](https://api.scryfall.com/cards/47ce8b7e-d8e1-489a-a69e-99089eeb8739?format=json&pretty=true) and [cleric class scryfall view](https://scryfall.com/card/afr/6/cleric-class). So basically I added a one-liner to support them. Can you please merge the PR?

Thanks! 😄
This commit is contained in:
Luke 2021-07-16 15:36:02 +02:00 committed by GitHub
parent 8610e077b0
commit 804150946b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -167,6 +167,7 @@ class CardsObject(FoundationObject):
'meld': lambda num: self.scryfallJson['image_uris'], 'meld': lambda num: self.scryfallJson['image_uris'],
'leveler': lambda num: self.scryfallJson['image_uris'], 'leveler': lambda num: self.scryfallJson['image_uris'],
'saga': lambda num: self.scryfallJson['image_uris'], 'saga': lambda num: self.scryfallJson['image_uris'],
'class': lambda num: self.scryfallJson['image_uris'],
'planar': lambda num: self.scryfallJson['image_uris'], 'planar': lambda num: self.scryfallJson['image_uris'],
'scheme': lambda num: self.scryfallJson['image_uris'], 'scheme': lambda num: self.scryfallJson['image_uris'],
'vanguard': lambda num: self.scryfallJson['image_uris'], 'vanguard': lambda num: self.scryfallJson['image_uris'],