Merge pull request #9045 from PurpleCrowbar/imagefixes

Specific token image bug fixes
This commit is contained in:
Oleg Agafonov 2022-05-31 23:55:07 +04:00 committed by GitHub
commit da6e5260ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

@ -18,7 +18,7 @@ public final class ChandraAwakenedInfernoEmblem extends Emblem {
public ChandraAwakenedInfernoEmblem() {
setName("Emblem Chandra");
setExpansionSetCodeForImage("M19");
setExpansionSetCodeForImage("M20");
this.getAbilities().add(new BeginningOfUpkeepTriggeredAbility(
Zone.COMMAND, new DamageControllerEffect(1, "this emblem"),
TargetController.YOU, false, true

View file

@ -23,6 +23,7 @@ public final class MuYanlingSkyDancerEmblem extends Emblem {
// "Islands you control have '{T}: Draw a card'."
public MuYanlingSkyDancerEmblem() {
this.setName("Emblem Yanling");
this.setExpansionSetCodeForImage("M20");
this.getAbilities().add(new SimpleStaticAbility(
Zone.COMMAND,
new GainAbilityControlledEffect(new SimpleActivatedAbility(

View file

@ -5,6 +5,7 @@ import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.HasteAbility;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.util.RandomUtil;
import java.util.Arrays;
@ -27,6 +28,15 @@ public final class TheLocustGodInsectToken extends TokenImpl {
availableImageSetCodes = Arrays.asList("HOU", "C20");
}
@Override
public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code);
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C20")) {
this.setTokenType(2);
}
}
public TheLocustGodInsectToken(final TheLocustGodInsectToken token) {
super(token);
}