mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[ECL] Implement Mutable Explorer
This commit is contained in:
parent
454c7e0116
commit
dd316ee61f
5 changed files with 100 additions and 29 deletions
|
|
@ -0,0 +1,38 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect;
|
||||
import mage.abilities.mana.ColorlessManaAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.game.permanent.token.custom.CreatureToken;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MutavaultToken extends TokenImpl {
|
||||
|
||||
public MutavaultToken() {
|
||||
super("Mutavault", "Mutavault token");
|
||||
cardType.add(CardType.LAND);
|
||||
|
||||
// {tap}: Add {C}.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
|
||||
// {1}: Mutavault becomes a 2/2 creature with all creature types until end of turn. It's still a land.
|
||||
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
|
||||
new CreatureToken(2, 2, "2/2 creature with all creature types")
|
||||
.withAllCreatureTypes(true),
|
||||
CardType.LAND, Duration.EndOfTurn
|
||||
), new GenericManaCost(1)));
|
||||
}
|
||||
|
||||
private MutavaultToken(final MutavaultToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public MutavaultToken copy() {
|
||||
return new MutavaultToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -73,6 +73,11 @@ public final class CreatureToken extends TokenImpl {
|
|||
return this;
|
||||
}
|
||||
|
||||
public CreatureToken withAllCreatureTypes(boolean allCreatureTypes) {
|
||||
this.subtype.setIsAllCreatureTypes(allCreatureTypes);
|
||||
return this;
|
||||
}
|
||||
|
||||
private CreatureToken(final CreatureToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue