[MID] Implemented Wrenn and Seven

This commit is contained in:
Evan Kranzler 2021-08-05 22:02:36 -04:00
parent 3910dae6e0
commit 3065679f3d
6 changed files with 189 additions and 6 deletions

View file

@ -0,0 +1,21 @@
package mage.game.command.emblems;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.MaximumHandSizeControllerEffect;
import mage.constants.Duration;
import mage.constants.Zone;
import mage.game.command.Emblem;
/**
* @author TheElk801
*/
public final class WrennAndSevenEmblem extends Emblem {
// You get an emblem with "You have no maximum hand size."
public WrennAndSevenEmblem() {
this.setName("Emblem Wrenn");
this.getAbilities().add(new SimpleStaticAbility(Zone.COMMAND, new MaximumHandSizeControllerEffect(
Integer.MAX_VALUE, Duration.WhileOnBattlefield, MaximumHandSizeControllerEffect.HandSizeModification.SET
)));
}
}

View file

@ -29,7 +29,7 @@ public final class DogIllusionToken extends TokenImpl {
toughness = new MageInt(0);
addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(
DogIllusionValue.instance, Duration.EndOfGame)
.setText("{this}'s power and toughness are each equal to twice the number of cards in your hand")
.setText("this creature's power and toughness are each equal to twice the number of cards in your hand")
));
}

View file

@ -0,0 +1,38 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.common.LandsYouControlCount;
import mage.abilities.effects.common.continuous.SetPowerToughnessSourceEffect;
import mage.abilities.keyword.ReachAbility;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.Zone;
/**
* @author TheElk801
*/
public final class WrennAndSevenToken extends TokenImpl {
public WrennAndSevenToken() {
super("Treefolk", "green Treefolk creature token with reach and \"This creature's power and toughness are each equal to the number of lands you control.\"");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add(SubType.TREEFOLK);
power = new MageInt(0);
toughness = new MageInt(0);
this.addAbility(ReachAbility.getInstance());
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(
LandsYouControlCount.instance, Duration.EndOfGame
).setText("this creature's power and toughness are each equal to the number of lands you control")));
}
public WrennAndSevenToken(final WrennAndSevenToken token) {
super(token);
}
public WrennAndSevenToken copy() {
return new WrennAndSevenToken(this);
}
}