question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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"
        }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
Fryyyyycommented, Oct 5, 2018

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.

1reaction
ancestralcommented, Oct 5, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could you recommend good dual/split cards for layout design
I could place each cards facing upside down to whoe which card is active, but it might be too confusing to the opposing...
Read more >
Cards - Bootstrap
Bootstrap's cards provide a flexible and extensible content container with multiple variants and options.
Read more >
Layout - Foundations - Human Interface Guidelines - Design
Using a consistent layout that adapts to various contexts makes your experience more approachable and helps people enjoy their favorite apps and games...
Read more >
Realizing common layouts using grids - CSS - MDN Web Docs
To round off this set of guides to CSS Grid Layout, we're going to walk through a few different layouts, which demonstrate some...
Read more >
thomasloven/lovelace-layout-card - GitHub
The cards are placed into the columns one at a time in a method depending on the current layout. Any empty columns are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found