refactor: improved token classes naming (#14317)

* Refactor/rename AssassinToken2 to AssassinDeathtouchToken to fit naming convention

* Refactor/rename AvatarToken2 to AvatarFlyingToken to fit naming convention
This commit is contained in:
Muz 2026-01-26 05:51:18 -06:00 committed by GitHub
parent 4d334b29a8
commit 4da61af91e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 17 additions and 18 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

@ -19,7 +19,7 @@ import mage.filter.predicate.mageobject.AbilityPredicate;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.AssassinToken2;
import mage.game.permanent.token.AssassinDeathtouchToken;
import mage.target.targetpointer.FixedTarget;
import java.util.UUID;
@ -42,7 +42,7 @@ public final class VraskaSwarmsEminence extends CardImpl {
);
// -2: Create a 1/1 black Assassin creature token with deathtouch and "Whenever this creature deals damage to a planeswalker, destroy that planeswalker."
this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new AssassinToken2()), -2));
this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new AssassinDeathtouchToken()), -2));
}
private VraskaSwarmsEminence(final VraskaSwarmsEminence card) {

View file

@ -9,9 +9,9 @@ import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class AssassinToken2 extends TokenImpl {
public final class AssassinDeathtouchToken extends TokenImpl {
public AssassinToken2() {
public AssassinDeathtouchToken() {
super("Assassin Token", "1/1 black Assassin creature token with deathtouch and \"Whenever this creature deals damage to a planeswalker, destroy that planeswalker.\"");
cardType.add(CardType.CREATURE);
color.setBlack(true);
@ -22,12 +22,11 @@ public final class AssassinToken2 extends TokenImpl {
addAbility(new DestroyPlaneswalkerWhenDamagedTriggeredAbility());
}
private AssassinToken2(final AssassinToken2 token) {
private AssassinDeathtouchToken(final AssassinDeathtouchToken token) {
super(token);
}
public AssassinToken2 copy() {
return new AssassinToken2(this);
public AssassinDeathtouchToken copy() {
return new AssassinDeathtouchToken(this);
}
}

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

@ -1067,7 +1067,7 @@
# WAR
|TOK:WAR|Angel||AngelVigilanceToken|
|TOK:WAR|Assassin||AssassinToken2|
|TOK:WAR|Assassin||AssassinDeathtouchToken|
|TOK:WAR|Citizen||PlanewideCelebrationToken|
|TOK:WAR|Devil||DevilToken|
|TOK:WAR|Dragon||DragonToken|
@ -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|