Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra tag search parameters to find cards #5

Open
jleclanche opened this issue Mar 9, 2018 · 1 comment
Open

Add extra tag search parameters to find cards #5

jleclanche opened this issue Mar 9, 2018 · 1 comment

Comments

@jleclanche
Copy link
Member

Examples:

# Find all cards with the CHARGE tag set
!card CHARGE=1
!card 197=1

# Find all cards that cost 4 mana
!card COST=4
!card 48=4

# Find all Dragons
!card CARDRACE=DRAGON
!card CARDRACE=24
!card 200=24
!card 200=DRAGON

# Find all 10-mana dragons without taunt
!card COST=10 CARDRACE=DRAGON TAUNT=0 
@jleclanche
Copy link
Member Author

I think this code path would basically trigger if there's an = in the query. It would split the query parameters on whitespace, then split on =, parse the left side as a GameTag, the right side as an int.

If the right side is not an int (eg in the case of CARDRACE) it would have to attempt to parse as the corresponding enum to the tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant