mtgjson: Cards with Split Layout don't pull full info for each section of the card

Describe the bug Split cards most recently from the GRN block are not pulling the full data for each section of the card. For example, the card Invert // Invent is shown as Invert as the base name with both names in the Names entry. It seems both sides split they text and type across Text / OriginalText and Type / OriginalType.

The issue appears to be in terms of the ManaCost field, it shows the mana cost for the main named card side but does not show the ManaCost for the other side of the card.

{
            "artist": "Mathias Kollros",
            "borderColor": "black",
            "colorIdentity": [
                "R",
                "U"
            ],
            "convertedManaCost": 7.0,
            "foreignData": [],
            "frameVersion": "2015",
            "hasFoil": true,
            "hasNonFoil": true,
            "layout": "split",
            "legalities": {
                "future": "Legal"
            },
            "manaCost": "{4}{U}{R}",
            "multiverseId": 452978,
            "name": "Invent",
            "names": [
                "Invert",
                "Invent"
            ],
            "number": "228",
            "originalText": "Switch the power and toughness of each of up to two target creatures.",
            "originalType": "Instant",
            "printings": [
                "GRN"
            ],
            "rarity": "uncommon",
            "rulings": [
                {
                    "date": "2018-09-12",
                    "text": "Invert has received 0-day errata to clarify that the effect lasts only until end of turn. For more information see https://twitter.com/EliShffrn/status/1040006137616072704"
                },
                {
                    "date": "2018-10-05",
                    "text": "If you chose two targets, Invert switches the power and toughness of one creature and it switches the power and toughness of another creature. It doesn’t switch one creature’s power with another creature’s power."
                },
                {
                    "date": "2018-10-05",
                    "text": "Effects that switch a creature’s power and toughness apply after all other effects, regardless of when those effects began to apply. For instance, if you cast Invert targeting a 1/2 creature then give it +2/+0 later in the turn, it’s a 2/3 creature, not a 4/1 creature."
                },
                {
                    "date": "2018-10-05",
                    "text": "While resolving Invent, you could put no cards, an instant card, a sorcery card, or an instant card and a sorcery card into your hand."
                }
            ],
            "subtypes": [],
            "supertypes": [],
            "text": "Search your library for an instant card and/or a sorcery card, reveal them, put them into your hand, then shuffle your library.",
            "type": "Instant",
            "types": [
                "Instant"
            ],
            "uuid": "054a4e4f-8baa-41cf-b24c-d068e8b9a070"
        }

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

This isn’t a rules engine, though. It’s just some facts about the cards, and each half is listed separately in the file. It’s fairly simple logic to calculate the CMC of a split card using one or both halves if you know which zone the card is located in.

Invert // Invent’s converted mana cost is 7. (This is also how Scryfall does it.)

202.3d The converted mana cost of a split card not on the stack or of a fused split spell on the stack is determined from the combined mana costs of its halves. Otherwise, while a split card is on the stack, the converted mana cost of the spell is determined by the mana cost of the half that was chosen to be cast. See rule 708, “Split Cards.”

By definition, the “converted mana cost” of Invert // Invent is the combined mana costs of its halves. The combined mana costs, not the combined converted mana costs. This is important: each half does not have an individual converted mana cost. There is currently never a rules interaction that references a half of a split card’s converted mana cost. A half of a card does not have its own converted mana cost. There may be cards that reference the half’s mana cost, and this mana cost is listed in the card.

While the card is on the stack, it may have different qualities, for sure. But while it’s not on the stack, the card has a converted mana cost of 7. Appetite for Brains, Blazing Shoal, Chalice of the Void… these cards need to reference this card’s converted mana cost, which is 7.