foul-magics/Mage/src/main/java/mage/game/permanent/token/OviyaPashiriSageLifecrafterToken.java
2020-02-05 02:17:00 +04:00

40 lines
1.2 KiB
Java

package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.util.RandomUtil;
/**
*
* @author spjspj
*/
public final class OviyaPashiriSageLifecrafterToken extends TokenImpl {
static final FilterControlledCreaturePermanent filterCreature = new FilterControlledCreaturePermanent("creatures you control");
public OviyaPashiriSageLifecrafterToken() {
this(1);
}
public OviyaPashiriSageLifecrafterToken(int number) {
super("Construct", "an X/X colorless Construct artifact creature token, where X is the number of creatures you control");
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
subtype.add(SubType.CONSTRUCT);
setOriginalExpansionSetCode("KLD");
setTokenType(RandomUtil.nextInt(2) + 1);
power = new MageInt(number);
toughness = new MageInt(number);
}
public OviyaPashiriSageLifecrafterToken(final OviyaPashiriSageLifecrafterToken token) {
super(token);
}
public OviyaPashiriSageLifecrafterToken copy() {
return new OviyaPashiriSageLifecrafterToken(this);
}
}