[SPM] Implement SP//dr, Piloted by Peni

This commit is contained in:
theelk801 2025-07-24 10:58:21 -04:00
parent ecdd531003
commit 7a20b14016
5 changed files with 69 additions and 3 deletions

View file

@ -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);
}

View file

@ -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);
}