Removed duplicate djinn monk token class, for #8996 (#9029)

This commit is contained in:
PurpleCrowbar 2022-05-30 16:05:17 +01:00 committed by GitHub
parent 43a27dfa0c
commit 9ed04cc3c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 36 deletions

View file

@ -610,7 +610,7 @@
|Generate|TOK:DST|Insect|||InsectToken| |Generate|TOK:DST|Insect|||InsectToken|
|Generate|TOK:DST|Myr|||MyrToken| |Generate|TOK:DST|Myr|||MyrToken|
|Generate|TOK:DST|Spawn|||SpawningPitToken| |Generate|TOK:DST|Spawn|||SpawningPitToken|
|Generate|TOK:DTK|Djinn Monk|||SkywiseTeachingsToken| |Generate|TOK:DTK|Djinn Monk|||DjinnMonkToken|
|Generate|TOK:DTK|Dragon|||DragonToken| |Generate|TOK:DTK|Dragon|||DragonToken|
|Generate|TOK:DTK|Goblin|||GoblinToken| |Generate|TOK:DTK|Goblin|||GoblinToken|
|Generate|TOK:DTK|Morph|| |Generate|TOK:DTK|Morph||

View file

@ -11,7 +11,7 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.filter.FilterSpell; import mage.filter.FilterSpell;
import mage.filter.predicate.Predicates; import mage.filter.predicate.Predicates;
import mage.game.permanent.token.SkywiseTeachingsToken; import mage.game.permanent.token.DjinnMonkToken;
/** /**
* *
@ -29,7 +29,7 @@ public final class SkywiseTeachings extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{U}"); super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{U}");
// Whenever you cast a noncreature spell, you may pay {1}{U}. If you do, create a 2/2 blue Djinn Monk creature token with flying. // Whenever you cast a noncreature spell, you may pay {1}{U}. If you do, create a 2/2 blue Djinn Monk creature token with flying.
this.addAbility(new SpellCastControllerTriggeredAbility(new DoIfCostPaid(new CreateTokenEffect(new SkywiseTeachingsToken()), new ManaCostsImpl("{1}{U}")), filter, false)); this.addAbility(new SpellCastControllerTriggeredAbility(new DoIfCostPaid(new CreateTokenEffect(new DjinnMonkToken()), new ManaCostsImpl("{1}{U}")), filter, false));
} }

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
@ -21,6 +23,8 @@ public final class DjinnMonkToken extends TokenImpl {
power = new MageInt(2); power = new MageInt(2);
toughness = new MageInt(2); toughness = new MageInt(2);
addAbility(FlyingAbility.getInstance()); addAbility(FlyingAbility.getInstance());
availableImageSetCodes = Arrays.asList("DTK", "IMA");
} }
public DjinnMonkToken(final DjinnMonkToken token) { public DjinnMonkToken(final DjinnMonkToken token) {

View file

@ -1,33 +0,0 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
/**
*
* @author spjspj
*/
public final class SkywiseTeachingsToken extends TokenImpl {
public SkywiseTeachingsToken() {
super("Djinn Monk Token", "2/2 blue Djinn Monk creature token with flying");
cardType.add(CardType.CREATURE);
color.setBlue(true);
this.subtype.add(SubType.DJINN);
this.subtype.add(SubType.MONK);
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());
}
public SkywiseTeachingsToken(final SkywiseTeachingsToken token) {
super(token);
}
public SkywiseTeachingsToken copy() {
return new SkywiseTeachingsToken(this);
}
}