Refactor/rename AvatarToken2 to AvatarFlyingToken to fit naming convention

This commit is contained in:
Muz Ali 2026-01-25 13:32:27 -06:00
parent 8089a41ddf
commit 6d1cbd55f5
3 changed files with 9 additions and 9 deletions

View file

@ -13,7 +13,7 @@ import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import mage.filter.common.FilterControlledPermanent;
import mage.game.permanent.token.AvatarToken2;
import mage.game.permanent.token.AvatarFlyingToken;
import java.util.UUID;
@ -31,12 +31,12 @@ public final class AjanisLastStand extends CardImpl {
// Whenever a creature or planeswalker you control dies, you may sacrifice Ajani's Last Stand. If you do, create a 4/4 white Avatar creature token with flying.
this.addAbility(new DiesCreatureTriggeredAbility(
new DoIfCostPaid(new CreateTokenEffect(new AvatarToken2()), new SacrificeSourceCost()),
new DoIfCostPaid(new CreateTokenEffect(new AvatarFlyingToken()), new SacrificeSourceCost()),
false, StaticFilters.FILTER_CONTROLLED_PERMANENT_CREATURE_OR_PLANESWALKER
));
// When a spell or ability an opponent controls causes you to discard this card, if you control a Plains, create a 4/4 white Avatar creature token with flying.
this.addAbility(new DiscardedByOpponentTriggeredAbility(new CreateTokenEffect(new AvatarToken2())).withInterveningIf(condition));
this.addAbility(new DiscardedByOpponentTriggeredAbility(new CreateTokenEffect(new AvatarFlyingToken())).withInterveningIf(condition));
}
private AjanisLastStand(final AjanisLastStand card) {

View file

@ -5,9 +5,9 @@ import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
public final class AvatarToken2 extends TokenImpl {
public final class AvatarFlyingToken extends TokenImpl {
public AvatarToken2() {
public AvatarFlyingToken() {
super("Avatar Token", "4/4 white Avatar creature token with flying");
cardType.add(CardType.CREATURE);
color.setWhite(true);
@ -17,11 +17,11 @@ public final class AvatarToken2 extends TokenImpl {
addAbility(FlyingAbility.getInstance());
}
protected AvatarToken2(final AvatarToken2 token) {
protected AvatarFlyingToken(final AvatarFlyingToken token) {
super(token);
}
public AvatarToken2 copy() {
return new AvatarToken2(this);
public AvatarFlyingToken copy() {
return new AvatarFlyingToken(this);
}
}

View file

@ -1108,7 +1108,7 @@
# M19
|TOK:M19|Angel||AngelVigilanceToken|
|TOK:M19|Avatar||AvatarToken2|
|TOK:M19|Avatar||AvatarFlyingToken|
|TOK:M19|Bat||BatToken|
|TOK:M19|Beast||BeastToken|
|TOK:M19|Cat||CatToken2|