Added GTC token images

This commit is contained in:
PurpleCrowbar 2022-06-04 20:59:19 +01:00
parent d4de0e8729
commit 2ccf911fc4
8 changed files with 24 additions and 12 deletions

View file

@ -1348,6 +1348,16 @@ public class ScryfallImageSupportTokens {
put ("RTR/Soldier", "https://api.scryfall.com/cards/trtr/3/en?format=image"); put ("RTR/Soldier", "https://api.scryfall.com/cards/trtr/3/en?format=image");
put ("RTR/Wurm", "https://api.scryfall.com/cards/trtr/11/en?format=image"); put ("RTR/Wurm", "https://api.scryfall.com/cards/trtr/11/en?format=image");
// GTC
put ("GTC/Angel", "https://api.scryfall.com/cards/tgtc/1/en?format=image");
put ("GTC/Cleric", "https://api.scryfall.com/cards/tgtc/4/en?format=image");
put ("GTC/Emblem Domri Rade", "https://api.scryfall.com/cards/tgtc/8/en?format=image");
put ("GTC/Frog Lizard", "https://api.scryfall.com/cards/tgtc/3/en?format=image");
put ("GTC/Horror", "https://api.scryfall.com/cards/tgtc/5/en?format=image");
put ("GTC/Rat", "https://api.scryfall.com/cards/tgtc/2/en?format=image");
put ("GTC/Soldier", "https://api.scryfall.com/cards/tgtc/6/en?format=image");
put ("GTC/Spirit", "https://api.scryfall.com/cards/tgtc/7/en?format=image");
// generate supported sets // generate supported sets
supportedSets.clear(); supportedSets.clear();
for (String cardName : this.keySet()) { for (String cardName : this.keySet()) {

View file

@ -668,14 +668,11 @@
|Generate|TOK:GPT|Wurm|||WurmToken| |Generate|TOK:GPT|Wurm|||WurmToken|
|Generate|TOK:GTC|Angel|||AngelToken| |Generate|TOK:GTC|Angel|||AngelToken|
|Generate|TOK:GTC|Cleric|||DeathpactAngelToken| |Generate|TOK:GTC|Cleric|||DeathpactAngelToken|
|Generate|TOK:GTC|Frog Lizard|||RapidHybridizationToken| |Generate|TOK:GTC|Frog Lizard|||FrogLizardToken|
|Generate|TOK:GTC|Horror|||NightwingHorrorToken| |Generate|TOK:GTC|Horror|||NightwingHorrorToken|
|Generate|TOK:GTC|Knight|||KnightWatch|
|Generate|TOK:GTC|Ooze|||MysticGenesisOozeToken|
|Generate|TOK:GTC|Rat|||RatToken| |Generate|TOK:GTC|Rat|||RatToken|
|Generate|TOK:GTC|Soldier|1||SoldierToken| |Generate|TOK:GTC|Soldier|||SoldierTokenWithHaste|
|Generate|TOK:GTC|Soldier|2||SoldierTokenWithHaste| |Generate|TOK:GTC|Spirit|||WhiteBlackSpiritToken|
|Generate|TOK:GTC|Spirit|||TeysaEnvoyOfGhostsToken|
|Generate|TOK:H17|Dragon|||DragonTokenGold| |Generate|TOK:H17|Dragon|||DragonTokenGold|
|Generate|TOK:HML|Plant Wall|||KelpToken| |Generate|TOK:HML|Plant Wall|||KelpToken|
|Generate|TOK:HML|Serf|||SerfToken| |Generate|TOK:HML|Serf|||SerfToken|

View file

@ -22,7 +22,7 @@ public final class DomriRadeEmblem extends Emblem {
// "Creatures you control have double strike, trample, hexproof and haste." // "Creatures you control have double strike, trample, hexproof and haste."
public DomriRadeEmblem() { public DomriRadeEmblem() {
this.setName("Emblem Domri Rade"); this.setName("Emblem Domri");
FilterPermanent filter = new FilterControlledCreaturePermanent("Creatures"); FilterPermanent filter = new FilterControlledCreaturePermanent("Creatures");
CompoundAbility compoundAbilities = new CompoundAbility( CompoundAbility compoundAbilities = new CompoundAbility(

View file

@ -15,6 +15,8 @@ import mage.filter.common.FilterCreatureCard;
import mage.filter.predicate.mageobject.NamePredicate; import mage.filter.predicate.mageobject.NamePredicate;
import mage.target.common.TargetCardInYourGraveyard; import mage.target.common.TargetCardInYourGraveyard;
import java.util.Arrays;
/** /**
* *
* @author spjspj * @author spjspj
@ -44,6 +46,8 @@ public final class DeathpactAngelToken extends TokenImpl {
ability.addCost(new SacrificeSourceCost()); ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCardInYourGraveyard(filter)); ability.addTarget(new TargetCardInYourGraveyard(filter));
this.addAbility(ability); this.addAbility(ability);
availableImageSetCodes = Arrays.asList("GTC", "GK2");
} }
public DeathpactAngelToken(final DeathpactAngelToken token) { public DeathpactAngelToken(final DeathpactAngelToken token) {

View file

@ -20,7 +20,7 @@ public final class FrogLizardToken extends TokenImpl {
power = new MageInt(3); power = new MageInt(3);
toughness = new MageInt(3); toughness = new MageInt(3);
availableImageSetCodes = Arrays.asList("RNA", "C15", "C21"); availableImageSetCodes = Arrays.asList("GTC", "RNA", "C15", "C21");
} }
public FrogLizardToken(final FrogLizardToken token) { public FrogLizardToken(final FrogLizardToken token) {

View file

@ -6,6 +6,8 @@ import mage.constants.SubType;
import mage.MageInt; import mage.MageInt;
import mage.abilities.keyword.FlyingAbility; import mage.abilities.keyword.FlyingAbility;
import java.util.Arrays;
/** /**
* *
* @author spjspj * @author spjspj
@ -23,6 +25,8 @@ public final class NightwingHorrorToken extends TokenImpl {
// Flying // Flying
this.addAbility(FlyingAbility.getInstance()); this.addAbility(FlyingAbility.getInstance());
availableImageSetCodes = Arrays.asList("GTC");
} }
public NightwingHorrorToken(final NightwingHorrorToken token) { public NightwingHorrorToken(final NightwingHorrorToken token) {

View file

@ -30,9 +30,6 @@ public final class SoldierTokenWithHaste extends TokenImpl {
public void setExpansionSetCodeForImage(String code) { public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code); super.setExpansionSetCodeForImage(code);
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("GTC")) {
setTokenType(2);
}
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("MM3")) { if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("MM3")) {
setTokenType(2); setTokenType(2);
} }

View file

@ -22,7 +22,7 @@ public final class WhiteBlackSpiritToken extends TokenImpl {
toughness = new MageInt(1); toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance()); this.addAbility(FlyingAbility.getInstance());
availableImageSetCodes.addAll(Arrays.asList("MH1", "C15", "C21", "UMA")); availableImageSetCodes.addAll(Arrays.asList("GTC", "MH1", "C15", "C21", "UMA"));
} }
@Override @Override