mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Make Wakeroot Elemental use CreatureToken instead of custom private token
This commit is contained in:
parent
7dfa2f57db
commit
a429753eb0
1 changed files with 6 additions and 24 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue