forked from External/mage
37 lines
1.4 KiB
Java
37 lines
1.4 KiB
Java
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.SetBasePowerToughnessSourceEffect;
|
|
import mage.abilities.keyword.ReachAbility;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.constants.Zone;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class WrennAndSevenTreefolkToken extends TokenImpl {
|
|
|
|
public WrennAndSevenTreefolkToken() {
|
|
super("Treefolk Token", "green Treefolk creature token with reach and \"This token'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 SetBasePowerToughnessSourceEffect(
|
|
LandsYouControlCount.instance
|
|
).setText("this token's power and toughness are each equal to the number of lands you control")));
|
|
}
|
|
|
|
private WrennAndSevenTreefolkToken(final WrennAndSevenTreefolkToken token) {
|
|
super(token);
|
|
}
|
|
|
|
public WrennAndSevenTreefolkToken copy() {
|
|
return new WrennAndSevenTreefolkToken(this);
|
|
}
|
|
}
|