Add [PL26] set (Year of the Horse 2026) (#14314)

This commit is contained in:
Muz 2026-01-26 19:16:27 -06:00 committed by GitHub
parent cc224c1bad
commit 14d94c59b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 1 deletions

View file

@ -617,6 +617,7 @@ public class ScryfallImageSupportCards {
add("TLE"); // Avatar: The Last Airbender Eternal
add("ECL"); // Lorwyn Eclipsed
add("ECC"); // Lorwyn Eclipsed Commander
add("PL26"); // Year of the Horse 2026
add("TMT"); // Teenage Mutant Ninja Turtles
add("TMC"); // Teenage Mutant Ninja Turtles Eternal
add("MSH"); // Marvel Super Heroes
@ -744,7 +745,7 @@ public class ScryfallImageSupportCards {
// LTR - 0 number for tokens only
// Scryfall has a bug, for some reason this link doesn't work with ?format=image even though it works with ?format=json
// and ?format=text. Base url fails because language is qya and not en and alternate url fails because of this bug
// TODO: This should be reverted when Scryfall fixes the bug
// TODO: This should be reverted when Scryfall fixes the bug
// put("LTR/The One Ring/001", "https://api.scryfall.com/cards/ltr/0/");
put("LTR/The One Ring/001", "https://api.scryfall.com/cards/ltr/0/qya?format=image");

View file

@ -3006,6 +3006,9 @@ public class ScryfallImageSupportTokens {
// PL25
put("PL25/Snake", "https://api.scryfall.com/cards/pl25/2?format=image");
// PL26
put("PL26/Treasure", "https://api.scryfall.com/cards/pl26/2?format=image");
// generate supported sets
supportedSets.clear();
for (String cardName : this.keySet()) {

View file

@ -0,0 +1,28 @@
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
* https://scryfall.com/sets/pl26
*/
public class YearOfTheHorse2026 extends ExpansionSet {
private static final YearOfTheHorse2026 instance = new YearOfTheHorse2026();
public static YearOfTheHorse2026 getInstance() {
return instance;
}
private YearOfTheHorse2026() {
super("Year of the Horse 2026", "PL26", ExpansionSet.buildDate(2026, 2, 17), SetType.PROMOTIONAL);
this.hasBoosters = false;
this.hasBasicLands = true;
cards.add(new SetCardInfo("Calamity, Galloping Inferno", 4, Rarity.RARE, mage.cards.c.CalamityGallopingInferno.class));
cards.add(new SetCardInfo("Caustic Bronco", 1, Rarity.RARE, mage.cards.c.CausticBronco.class));
cards.add(new SetCardInfo("Emiel the Blessed", 3, Rarity.MYTHIC, mage.cards.e.EmielTheBlessed.class));
cards.add(new SetCardInfo("Plains", 5, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
}
}

View file

@ -3027,3 +3027,6 @@
# PL25
|TOK:PL25|Snake||SnakeToken|
# PL26
|TOK:PL26|Treasure||TreasureToken|