I like playing Magic, except for the "it's designed to pump away your money" aspect. So I like formats where I can play with other people's cards a lot! My favorite is probably drafting from booster packs where someone else will keep all the cards, but yesterday Stevie brought over a Forgetful Fish-style deck he'd put together, and we played a couple times. The only creature in this format is the Dandan, a 4/1 blue creature with:

Dandan can't attack unless defending player controls an Island.

When you control no Islands, sacrifice Dandan.

One of the cards in Stevie's deck was Magical Hack, a blue instant with:

Change the text of target spell or permanent by replacing all instances of one basic land type with another.

It's role in the deck was primarily to kill Dandans, by replacing "Island" on an opponent's Dandan with any basic land type they don't have. But it got me wondering: does it happen that there are any textual uses of the six basic land types [1] that are not intended to be about a basic land? For example, if a card happened to use the word "forestall", perhaps you could do something fun with it?

Supposedly you can search cards with regular expressions on Scryfall but I couldn't get it to work. Instead, I downloaded the cards as JSON from MTGJson [2] and wrote a ~10 line python script:

unusual_land_re = re.compile(
    r"(?i)"
    r"((plains)|(island)|(swamp)|(wastes)|(mountain)|(forest))"
    r"(?!(\b|s\b|[.]|walk\b|cycling\b))")

for fname in glob.glob("*.json.gz"):
  with gzip.open(fname) as inf:
    r = json.load(inf)
    if "cards" not in r["data"]: continue
    for card in r["data"]["cards"]:
      if "text" not in card: continue
        if unusual_land_re.search(card["text"]):
          print("%s: %s" % (card["name"], card["text"]))

The first time I ran it I got a bunch of "Forestcycling" etc, but after adding "cycling" to the query (as reproduced above) it didn't find anything. Oh well.

I probably could have gotten regexp searching working if I'd played with it a little more, but if I ever want to look for a card in a way that isn't reducible to a regular expression search this could be a good place to start!


[1] Forest, Plains, Mountain, Island, Swamp, and now Wastes

[2]

$ curl -sS https://mtgjson.com/api/v5/ | \
      grep -o '[^">]*.json.gz' | sort | uniq > gzip_jsons.txt
$ for x in $(cat gzip_jsons.txt); do
  wget https://mtgjson.com/api/v5/$x
done
$ du -hs .
1.0G .

Comment via: facebook, mastodon

New Comment
2 comments, sorted by Click to highlight new comments since:

Wastes is not a basic land type. It is a name of a card that is a basic land which has no basic land type (or other subtype, for that matter). So it is considered by effects that look for "a basic land", but not cards that look for "land card with a basic land type" (like Boseiju, Who Endures) or count the number of basic land types you have (like cards with Domain).

But it got me wondering: does it happen that there are any textual uses of the six basic land types [1] that are not intended to be about a basic land? For example, if a card happened to use the word "forestall", perhaps you could do something fun with it?

Unfortunately, the Comprehensive Rules has anticipated your "cool hack" and is one step ahead of you:

612.2. A text-changing effect changes only those words that are used in the correct way (for example, a Magic color word being used as a color word, a land type word used as a land type, or a creature type word used as a creature type). An effect that changes a color word or a subtype can’t change a card name, even if that name contains a word or a series of letters that is the same as a Magic color word, basic land type, or creature type.