From d138833029d08828b05e6e43fb2c655422d6ae1b Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Sat, 4 Jun 2022 15:27:03 +0100 Subject: [PATCH] Added M11 token images --- .../card/dl/sources/ScryfallImageSupportTokens.java | 8 ++++++++ .../main/java/mage/game/permanent/token/AvatarToken.java | 4 ++++ 2 files changed, 12 insertions(+) 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 43ec896d7a..035af92e0b 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 @@ -1161,6 +1161,14 @@ public class ScryfallImageSupportTokens { put ("M12/Wurm", "https://api.scryfall.com/cards/tm12/6/en?format=image"); put ("M12/Zombie", "https://api.scryfall.com/cards/tm12/3/en?format=image"); + // M11 + put ("M11/Avatar", "https://api.scryfall.com/cards/tm11/1/en?format=image"); + put ("M11/Beast", "https://api.scryfall.com/cards/tm11/4/en?format=image"); + put ("M11/Bird", "https://api.scryfall.com/cards/tm11/2/en?format=image"); + put ("M11/Ooze/1", "https://api.scryfall.com/cards/tm11/6/en?format=image"); + put ("M11/Ooze/2", "https://api.scryfall.com/cards/tm11/5/en?format=image"); + put ("M11/Zombie", "https://api.scryfall.com/cards/tm11/3/en?format=image"); + // generate supported sets supportedSets.clear(); for (String cardName : this.keySet()) { diff --git a/Mage/src/main/java/mage/game/permanent/token/AvatarToken.java b/Mage/src/main/java/mage/game/permanent/token/AvatarToken.java index 1af0d64eed..96aff833d0 100644 --- a/Mage/src/main/java/mage/game/permanent/token/AvatarToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/AvatarToken.java @@ -8,6 +8,8 @@ import mage.constants.Duration; import mage.constants.SubLayer; import mage.constants.SubType; +import java.util.Arrays; + /** * @author spjspj */ @@ -22,6 +24,8 @@ public final class AvatarToken extends TokenImpl { ControllerLifeCount.instance, Duration.WhileOnBattlefield, SubLayer.CharacteristicDefining_7a ).setText("this creature's power and toughness are each equal to your life total"))); + + availableImageSetCodes = Arrays.asList("LRW", "M10", "M11"); } public AvatarToken(final AvatarToken token) {