forked from External/mage
[MID] added tokens and images support
This commit is contained in:
parent
9015b156e5
commit
54a1efec63
24 changed files with 141 additions and 86 deletions
|
|
@ -0,0 +1,42 @@
|
|||
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;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class WrennAndSevenTreefolkToken extends TokenImpl {
|
||||
|
||||
public WrennAndSevenTreefolkToken() {
|
||||
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")));
|
||||
|
||||
availableImageSetCodes.addAll(Arrays.asList("MID"));
|
||||
}
|
||||
|
||||
public WrennAndSevenTreefolkToken(final WrennAndSevenTreefolkToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public WrennAndSevenTreefolkToken copy() {
|
||||
return new WrennAndSevenTreefolkToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue