Skip to content

Commit 2106f72

Browse files
committed
Refactor/rename AvatarToken2 to AvatarFlyingToken to fit naming convention
1 parent 7ba7a34 commit 2106f72

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Mage.Sets/src/mage/cards/a/AjanisLastStand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import mage.constants.SubType;
1414
import mage.filter.StaticFilters;
1515
import mage.filter.common.FilterControlledPermanent;
16-
import mage.game.permanent.token.AvatarToken2;
16+
import mage.game.permanent.token.AvatarFlyingToken;
1717

1818
import java.util.UUID;
1919

@@ -31,12 +31,12 @@ public AjanisLastStand(UUID ownerId, CardSetInfo setInfo) {
3131

3232
// 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.
3333
this.addAbility(new DiesCreatureTriggeredAbility(
34-
new DoIfCostPaid(new CreateTokenEffect(new AvatarToken2()), new SacrificeSourceCost()),
34+
new DoIfCostPaid(new CreateTokenEffect(new AvatarFlyingToken()), new SacrificeSourceCost()),
3535
false, StaticFilters.FILTER_CONTROLLED_PERMANENT_CREATURE_OR_PLANESWALKER
3636
));
3737

3838
// 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.
39-
this.addAbility(new DiscardedByOpponentTriggeredAbility(new CreateTokenEffect(new AvatarToken2())).withInterveningIf(condition));
39+
this.addAbility(new DiscardedByOpponentTriggeredAbility(new CreateTokenEffect(new AvatarFlyingToken())).withInterveningIf(condition));
4040
}
4141

4242
private AjanisLastStand(final AjanisLastStand card) {

Mage/src/main/java/mage/game/permanent/token/AvatarToken2.java renamed to Mage/src/main/java/mage/game/permanent/token/AvatarFlyingToken.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import mage.constants.CardType;
66
import mage.constants.SubType;
77

8-
public final class AvatarToken2 extends TokenImpl {
8+
public final class AvatarFlyingToken extends TokenImpl {
99

10-
public AvatarToken2() {
10+
public AvatarFlyingToken() {
1111
super("Avatar Token", "4/4 white Avatar creature token with flying");
1212
cardType.add(CardType.CREATURE);
1313
color.setWhite(true);
@@ -17,11 +17,11 @@ public AvatarToken2() {
1717
addAbility(FlyingAbility.getInstance());
1818
}
1919

20-
protected AvatarToken2(final AvatarToken2 token) {
20+
protected AvatarFlyingToken(final AvatarFlyingToken token) {
2121
super(token);
2222
}
2323

24-
public AvatarToken2 copy() {
25-
return new AvatarToken2(this);
24+
public AvatarFlyingToken copy() {
25+
return new AvatarFlyingToken(this);
2626
}
2727
}

Mage/src/main/resources/tokens-database.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@
10981098

10991099
# M19
11001100
|Generate|TOK:M19|Angel|||AngelVigilanceToken|
1101-
|Generate|TOK:M19|Avatar|||AvatarToken2|
1101+
|Generate|TOK:M19|Avatar|||AvatarFlyingToken|
11021102
|Generate|TOK:M19|Bat|||BatToken|
11031103
|Generate|TOK:M19|Beast|||BeastToken|
11041104
|Generate|TOK:M19|Cat|||CatToken2|

0 commit comments

Comments
 (0)