From bb3065afd91d2b22edf52b4c364cf26d43563061 Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Sat, 4 Jun 2022 16:31:05 +0100 Subject: [PATCH] Added ALA token images --- .../card/dl/sources/ScryfallImageSupportTokens.java | 12 ++++++++++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 3 +-- .../permanent/token/SkeletonRegenerateToken.java | 4 ++++ 3 files changed, 17 insertions(+), 2 deletions(-) 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 f75c78b05f..e5cc564e9f 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 @@ -1194,6 +1194,18 @@ public class ScryfallImageSupportTokens { put ("CON/Angel", "https://api.scryfall.com/cards/tcon/1/en?format=image"); put ("CON/Elemental", "https://api.scryfall.com/cards/tcon/2/en?format=image"); + // ALA + put ("ALA/Beast", "https://api.scryfall.com/cards/tala/10/en?format=image"); + put ("ALA/Dragon", "https://api.scryfall.com/cards/tala/6/en?format=image"); + put ("ALA/Goblin", "https://api.scryfall.com/cards/tala/7/en?format=image"); + put ("ALA/Homunculus", "https://api.scryfall.com/cards/tala/2/en?format=image"); + put ("ALA/Ooze", "https://api.scryfall.com/cards/tala/8/en?format=image"); + put ("ALA/Saproling", "https://api.scryfall.com/cards/tala/9/en?format=image"); + put ("ALA/Skeleton", "https://api.scryfall.com/cards/tala/4/en?format=image"); + put ("ALA/Soldier", "https://api.scryfall.com/cards/tala/1/en?format=image"); + put ("ALA/Thopter", "https://api.scryfall.com/cards/tala/3/en?format=image"); + put ("ALA/Zombie", "https://api.scryfall.com/cards/tala/5/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 83ac31a525..a989ebc994 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -231,10 +231,9 @@ |Generate|TOK:ALA|Beast|||GodSireBeastToken| |Generate|TOK:ALA|Dragon|||DragonToken| -|Generate|TOK:ALA|Goblin|||GoblinTokenWithHaste| |Generate|TOK:ALA|Goblin|||GoblinToken| |Generate|TOK:ALA|Homunculus|||HomunculusToken| -|Generate|TOK:ALA|Ooze|||MysticGenesisOozeToken| +|Generate|TOK:ALA|Ooze|||OozeToken| |Generate|TOK:ALA|Saproling|||SaprolingToken| |Generate|TOK:ALA|Skeleton|||SkeletonRegenerateToken| |Generate|TOK:ALA|Soldier|||SoldierToken| diff --git a/Mage/src/main/java/mage/game/permanent/token/SkeletonRegenerateToken.java b/Mage/src/main/java/mage/game/permanent/token/SkeletonRegenerateToken.java index 7f63f3382c..d849228ac8 100644 --- a/Mage/src/main/java/mage/game/permanent/token/SkeletonRegenerateToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/SkeletonRegenerateToken.java @@ -9,6 +9,8 @@ import mage.constants.ColoredManaSymbol; import mage.constants.SubType; import mage.constants.Zone; +import java.util.Arrays; + public final class SkeletonRegenerateToken extends TokenImpl { public SkeletonRegenerateToken() { @@ -19,6 +21,8 @@ public final class SkeletonRegenerateToken extends TokenImpl { power = new MageInt(1); toughness = new MageInt(1); this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ColoredManaCost(ColoredManaSymbol.B))); + + availableImageSetCodes = Arrays.asList("ALA", "A25"); } public SkeletonRegenerateToken(final SkeletonRegenerateToken token) {