april / decklist

The code behind decklist.org, which generates DCI Registration Sheets.
https://decklist.org/
MIT License
45 stars 20 forks source link

Split cards listed with both halves show up in separate category from instants and sorceries when sorted by type #58

Open richardneal opened 5 years ago

richardneal commented 5 years ago

For instance, a decklist with 1 Ionize, 1 Seal Away, and 1 Expansion // Explosion will be grouped correctly when just Expansion is written:

1 Expansion 1 Ionize

1 Seal Away

However, when the card name is written out as Expansion // Explosion, it goes into its own category:

1 Ionize

1 Seal Away

1 Expansion // Explosion

richardneal commented 5 years ago

Submitted #59 with a fix.

richardneal commented 5 years ago

Oh, after digging in more, I realized that it's not just split cards that have multiple names, as it looks like DFCs, flip cards, and Battlebond pairs fall in the same camp. Maybe there's not an easy fix.