forked from External/mage
* Adjust constructors to simplify * Refactor to remove duration parameter for CDA (always end of game) * Fix warnings * Druid Class not CDA * Entropic Specter fixup * Further constructor simplification * Analogous simplification for setting power only * Analogous simplification for setting toughness only * Remove superfluous parameter * Set fields final
41 lines
1.5 KiB
Java
41 lines
1.5 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;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class WrennAndSevenTreefolkToken extends TokenImpl {
|
|
|
|
public WrennAndSevenTreefolkToken() {
|
|
super("Treefolk Token", "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 SetBasePowerToughnessSourceEffect(
|
|
LandsYouControlCount.instance
|
|
).setText("this creature's power and toughness are each equal to the number of lands you control")));
|
|
|
|
availableImageSetCodes.addAll(Arrays.asList("MID"));
|
|
}
|
|
|
|
public WrennAndSevenTreefolkToken(final WrennAndSevenTreefolkToken token) {
|
|
super(token);
|
|
}
|
|
|
|
public WrennAndSevenTreefolkToken copy() {
|
|
return new WrennAndSevenTreefolkToken(this);
|
|
}
|
|
}
|