From 6d1cbd55f5864dc25b5126ab7c54263a18084ab5 Mon Sep 17 00:00:00 2001 From: Muz Ali Date: Sun, 25 Jan 2026 13:32:27 -0600 Subject: [PATCH] Refactor/rename AvatarToken2 to AvatarFlyingToken to fit naming convention --- Mage.Sets/src/mage/cards/a/AjanisLastStand.java | 6 +++--- .../{AvatarToken2.java => AvatarFlyingToken.java} | 10 +++++----- Mage/src/main/resources/tokens-database.txt | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) rename Mage/src/main/java/mage/game/permanent/token/{AvatarToken2.java => AvatarFlyingToken.java} (68%) diff --git a/Mage.Sets/src/mage/cards/a/AjanisLastStand.java b/Mage.Sets/src/mage/cards/a/AjanisLastStand.java index e6137f7e1d3..d22437ac2db 100644 --- a/Mage.Sets/src/mage/cards/a/AjanisLastStand.java +++ b/Mage.Sets/src/mage/cards/a/AjanisLastStand.java @@ -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) { diff --git a/Mage/src/main/java/mage/game/permanent/token/AvatarToken2.java b/Mage/src/main/java/mage/game/permanent/token/AvatarFlyingToken.java similarity index 68% rename from Mage/src/main/java/mage/game/permanent/token/AvatarToken2.java rename to Mage/src/main/java/mage/game/permanent/token/AvatarFlyingToken.java index 822a94c8ef2..9f21235cfaf 100644 --- a/Mage/src/main/java/mage/game/permanent/token/AvatarToken2.java +++ b/Mage/src/main/java/mage/game/permanent/token/AvatarFlyingToken.java @@ -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); } } diff --git a/Mage/src/main/resources/tokens-database.txt b/Mage/src/main/resources/tokens-database.txt index b3eb66463fd..329b32e0451 100644 --- a/Mage/src/main/resources/tokens-database.txt +++ b/Mage/src/main/resources/tokens-database.txt @@ -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|