Fixed CLB shapeshifter tokens' images

This commit is contained in:
PurpleCrowbar 2022-06-11 22:42:43 +01:00
parent d60f487239
commit e421f4757e
3 changed files with 27 additions and 3 deletions

View file

@ -30,6 +30,15 @@ public final class Shapeshifter32Token extends TokenImpl {
addAbility(new ChangelingAbility()); addAbility(new ChangelingAbility());
} }
@Override
public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code);
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("CLB")) {
this.setTokenType(3);
}
}
public Shapeshifter32Token(final Shapeshifter32Token token) { public Shapeshifter32Token(final Shapeshifter32Token token) {
super(token); super(token);
} }

View file

@ -25,6 +25,15 @@ public final class ShapeshifterBlueToken extends TokenImpl {
availableImageSetCodes = Arrays.asList("KHM", "CLB"); availableImageSetCodes = Arrays.asList("KHM", "CLB");
} }
@Override
public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code);
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("CLB")) {
this.setTokenType(4);
}
}
private ShapeshifterBlueToken(final ShapeshifterBlueToken token) { private ShapeshifterBlueToken(final ShapeshifterBlueToken token) {
super(token); super(token);
} }

View file

@ -4,10 +4,7 @@ import mage.MageInt;
import mage.abilities.keyword.ChangelingAbility; import mage.abilities.keyword.ChangelingAbility;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.SubType; import mage.constants.SubType;
import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List;
/** /**
* @author TheElk801 * @author TheElk801
@ -26,6 +23,15 @@ public final class ShapeshifterToken extends TokenImpl {
availableImageSetCodes = Arrays.asList("MH1", "CLB"); availableImageSetCodes = Arrays.asList("MH1", "CLB");
} }
@Override
public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code);
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("CLB")) {
this.setTokenType(2);
}
}
public ShapeshifterToken(final ShapeshifterToken token) { public ShapeshifterToken(final ShapeshifterToken token) {
super(token); super(token);
} }