From f4399e669a17d7857fdfe8b4ed1c23ed97e51822 Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Mon, 6 Jun 2022 15:24:02 +0100 Subject: [PATCH] Added GS1 token images --- .../plugins/card/dl/sources/ScryfallImageSupportTokens.java | 3 +++ Mage.Client/src/main/resources/card-pictures-tok.txt | 5 ++++- Mage/src/main/java/mage/game/permanent/token/MowuToken.java | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportTokens.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportTokens.java index 4e27dbb7ed..889654db52 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportTokens.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportTokens.java @@ -1621,6 +1621,9 @@ public class ScryfallImageSupportTokens { put ("A25/Whale", "https://api.scryfall.com/cards/ta25/7/en?format=image"); put ("A25/Wolf", "https://api.scryfall.com/cards/ta25/13/en?format=image"); + // GS1 + put ("GS1/Mowu", "https://api.scryfall.com/cards/gs1/T1/en?format=image"); + // generate supported sets supportedSets.clear(); for (String cardName : this.keySet()) { diff --git a/Mage.Client/src/main/resources/card-pictures-tok.txt b/Mage.Client/src/main/resources/card-pictures-tok.txt index bdc2b332bc..37cdb2f45a 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -1830,4 +1830,7 @@ |Generate|TOK:A25|Spirit|2||SpiritWhiteToken| |Generate|TOK:A25|Stangg Twin|||StanggTwinToken| |Generate|TOK:A25|Whale|||ReefWormWhaleToken| -|Generate|TOK:A25|Wolf|||WolfToken| \ No newline at end of file +|Generate|TOK:A25|Wolf|||WolfToken| + +# GS1 +|Generate|TOK:GS1|Mowu|||MowuToken| \ No newline at end of file diff --git a/Mage/src/main/java/mage/game/permanent/token/MowuToken.java b/Mage/src/main/java/mage/game/permanent/token/MowuToken.java index 6c0890879b..f07920112f 100644 --- a/Mage/src/main/java/mage/game/permanent/token/MowuToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/MowuToken.java @@ -5,6 +5,8 @@ import mage.constants.CardType; import mage.constants.SubType; import mage.constants.SuperType; +import java.util.Arrays; + /** * * @author TheElk801 @@ -19,6 +21,8 @@ public final class MowuToken extends TokenImpl { subtype.add(SubType.DOG); power = new MageInt(3); toughness = new MageInt(3); + + availableImageSetCodes = Arrays.asList("GS1"); } public MowuToken(final MowuToken token) {