servatrice/cockatrice/resources/help/search.md
Rob Blanckaert eb60fec8e2 Filter Strings for Deck Editor search (#3582)
* Add MagicCards.info like fitler parser.

* Use FilterString whenever one of [:=<>] is in the edit box.

* Opts

* Opt

* - Capture errors
- Allow querying any property by full name

* clang format

* Update cockatrice/src/filter_string.cpp

Co-Authored-By: basicer <basicer@basicer.com>

* - Some refactoring for clarity
- More filters
- Add filter help

* Clangify

* Add icon

* Fix test name

* Remove stay debug

* - Add Rarity filter
- Make " trigger filter string mode

* You have to pass both filter types

* clangify

* - Allow filtering by legality
- Import legality into card.xml

* Add format filter to filtertree

* More color search options

* RIP extended

* More fixes

* Fix c:m

* set syntax help parent

* Fix warning

* add additional explanations to syntax help

* Allow multiple ands/ors to be chained

* Cleanup and refactor

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>

* Move utility into guards

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>

* I heard you like refactors so I put a refactor inside your refactor (#3594)

* I heard you like refactors so I put a refactor inside your refactor

so you can refactor while you refactor

* clangify

* Update tab_deck_editor.h
2019-03-01 14:30:32 -05:00

3.6 KiB

Syntax Help


The search bar recognizes a set of special commands similar to some other card databases. Here is a list with examples. Each entry can be clicked to test the query and has a small explanation. Note that all searches are case insensitive.

Name:
[birds of paradise](#birds of paradise) (Any card name containing the words birds, of, and paradise)
["birds of paradise"](#%22birds of paradise%22) (Any card name containing the exact phrase "birds of paradise")
Rules Text (Oracle):
[o:flying](#o:flying) (Any card text that has the word flying)
[o:"first strike"](#o:%22first strike%22) (Any card text that has the exact phrase "first strike")
[o:"{T}" o:"add one mana of any color"](#o:%22{T}%22 o:%22add one mana of any color%22) (Any card text that has a tap symbol and the phrase "add one mana of any color")
Types:
[t:angel](#t:angel) (Any card with the type angel)
[t:angel t:legendary](#t:angel t:legendary) (Any angel that's also legendary)
[t:basic](#t:basic) (Any card with the type basic)
[t:arcane t:instant](#t:arcane t:instant) (Any card with the types arcane and instant)
Colors:
[c:w](#c:w) (Any card that is white)
[c:wu](#c:wu) (Any card that is white or blue)
[c:wum](#c:wum) (Any card that is white or blue, and multicolored)
[c:c](#c:c) (Any colorless card)
Power, Toughness, Converted Mana Cost:
[tou:1](#tou:1) (Any card with a toughness of 1)
[pow>=8](#pow>=8) (Any card with a power greater than or equal to 8)
[cmc=7](#cmc=7) (Any card with a converted mana cost equal to 7)
Rarity:
[r:mythic](#r:mythic) (Any card that has the mythic-rare rarity)
Format:
[f:standard](#f:standard) (Any card that can be played in standard)
[banned:modern](#banned:modern) (Any card that is banned in modern)
[restricted:vintage](#restricted:vintage) (Any card that is restricted in vintage)
[legal:pauper](#legal:pauper) (Any card that is legal in pauper)
Edition:
[set:lea](#set:lea) (Cards that appear in Alpha, which has the set code LEA)
[e:lea,leb](#e:lea,leb) (Cards that appear in Alpha or Beta)
e:lea,leb -(e:lea e:leb) (Cards that appear in Alpha or Beta but not in both editions)
Inverse:
[c:wu -c:m](#c:wu -c:m) (Any card that is white or blue, but not multicolored)
Branching:
[t:sliver or o:changeling](#t:sliver or o:changeling) (Any card that is either a sliver or has changeling)
Grouping:
t:angel -(angel or c:w) (Any angel that doesn't have angel in its name and isn't white)