minor token constructor cleanup (#14324)

Declare a zero-param token constructor where missing, and use it where extra args are needlessly passed in
This commit is contained in:
Muz 2026-01-26 19:15:43 -06:00 committed by GitHub
parent 162edb9351
commit 1208785d78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -40,7 +40,7 @@ public final class AinokStrikeLeader extends CardImpl {
public AinokStrikeLeader(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}");
this.subtype.add(SubType.DOG);
this.subtype.add(SubType.WARRIOR);
this.power = new MageInt(2);
@ -103,8 +103,8 @@ class AinokStrikeLeaderEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
for (UUID playerId : game.getOpponents(source.getControllerId())) {
new GoblinToken(false).putOntoBattlefield(1, game, source, source.getControllerId(), true, true, playerId);
new GoblinToken().putOntoBattlefield(1, game, source, source.getControllerId(), true, true, playerId);
}
return true;
}
}
}

View file

@ -54,7 +54,7 @@ public final class NerivCracklingVanguard extends CardImpl {
this.addAbility(DeathtouchAbility.getInstance());
// When Neriv enters, create two 1/1 red Goblin creature tokens.
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new GoblinToken(false), 2)));
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new GoblinToken(), 2)));
// Whenever Neriv attacks, exile a number of cards from the top of your library equal to the number of differently named tokens you control. During any turn you attacked with a commander, you may play those cards.
this.addAbility(new AttacksTriggeredAbility(new NerivCracklingVanguardEffect()).addHint(NerivCracklingVanguardEffect.getHint()));

View file

@ -8,6 +8,10 @@ import mage.constants.SubType;
public class NalaarAetherjetToken extends TokenImpl{
public NalaarAetherjetToken() {
this(0);
}
public NalaarAetherjetToken(int xValue) {
super("Nalaar Aetherjet", "X/X colorless Vehicle artifact token named Nalaar Aetherjet with flying and crew 2");
cardType.add(CardType.ARTIFACT);