mirror of
https://github.com/magefree/mage.git
synced 2026-01-21 10:49:58 -08:00
[SPM] Implement SP//dr, Piloted by Peni
This commit is contained in:
parent
ecdd531003
commit
7a20b14016
5 changed files with 69 additions and 3 deletions
|
|
@ -97,7 +97,7 @@ public class ScryfallApiCard {
|
|||
// broken adventure/omen card (scryfall changed it for some reason)
|
||||
// Scavenger Regent // Exude Toxin
|
||||
// https://scryfall.com/card/tdm/90/scavenger-regent-exude-toxin
|
||||
if (this.name.contains("//")) {
|
||||
if (this.name.contains(" // ")) {
|
||||
throw new IllegalArgumentException("Scryfall: unsupported data type, broken reversible_card must have same simple name"
|
||||
+ this.set + " - " + this.collector_number + " - " + this.name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -640,7 +640,7 @@ public enum WizardCardsImageSource implements CardImageSource {
|
|||
|
||||
private String normalizeName(String name) {
|
||||
//Split card
|
||||
if (name.contains("//")) {
|
||||
if (name.contains(" // ")) {
|
||||
if (name.indexOf('(') > 0) {
|
||||
name = name.substring(0, name.indexOf('(') - 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue