Make Wakeroot Elemental use CreatureToken instead of custom private token

This commit is contained in:
Muz Ali 2026-01-26 20:03:16 -06:00
parent 7dfa2f57db
commit a429753eb0

View file

@ -14,7 +14,7 @@ import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledLandPermanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.custom.CreatureToken;
import mage.target.TargetPermanent;
import java.util.UUID;
@ -38,7 +38,11 @@ public final class WakerootElemental extends CardImpl {
new UntapTargetEffect(), new ManaCostsImpl<>("{G}{G}{G}{G}{G}")
);
ability.addEffect(new BecomesCreatureTargetEffect(
new WakerootElementalToken(), false, true, Duration.Custom
new CreatureToken(5, 5, "Elemental creature with haste", SubType.ELEMENTAL)
.withAbility(HasteAbility.getInstance()),
false,
true,
Duration.Custom
).setText("It becomes a 5/5 Elemental creature with haste. It's still a land."));
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
@ -53,25 +57,3 @@ public final class WakerootElemental extends CardImpl {
return new WakerootElemental(this);
}
}
class WakerootElementalToken extends TokenImpl {
WakerootElementalToken() {
super("", "5/5 Elemental creature with haste");
this.cardType.add(CardType.CREATURE);
this.subtype.add(SubType.ELEMENTAL);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
this.addAbility(HasteAbility.getInstance());
}
private WakerootElementalToken(final WakerootElementalToken token) {
super(token);
}
public WakerootElementalToken copy() {
return new WakerootElementalToken(this);
}
}