forked from External/mage
* [M21] added tokens; * [M21] added tokens download support; * Fixed wrong images for some tokens (Angel, Beast, Bird, Cat, etc);
51 lines
1.6 KiB
Java
51 lines
1.6 KiB
Java
package mage.game.permanent.token;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.common.SimpleStaticAbility;
|
|
import mage.abilities.effects.common.combat.AttacksIfAbleAllEffect;
|
|
import mage.abilities.effects.common.combat.CantBlockSourceEffect;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SubType;
|
|
import mage.constants.TargetController;
|
|
import mage.filter.common.FilterCreaturePermanent;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class PursuedWhaleToken extends TokenImpl {
|
|
|
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures you control");
|
|
|
|
static {
|
|
filter.add(TargetController.YOU.getControllerPredicate());
|
|
}
|
|
|
|
public PursuedWhaleToken() {
|
|
super("Pirate", "1/1 red Pirate creature token with \"This creature can't block\" and \"Creatures you control attack each combat if able.\"");
|
|
cardType.add(CardType.CREATURE);
|
|
color.setRed(true);
|
|
subtype.add(SubType.PIRATE);
|
|
power = new MageInt(1);
|
|
toughness = new MageInt(1);
|
|
|
|
this.addAbility(new SimpleStaticAbility(new CantBlockSourceEffect(Duration.WhileOnBattlefield)
|
|
.setText("this creature can't block")));
|
|
this.addAbility(new SimpleStaticAbility(new AttacksIfAbleAllEffect(
|
|
filter, Duration.WhileOnBattlefield, true
|
|
)));
|
|
|
|
availableImageSetCodes = Arrays.asList("M21");
|
|
}
|
|
|
|
private PursuedWhaleToken(final PursuedWhaleToken token) {
|
|
super(token);
|
|
}
|
|
|
|
@Override
|
|
public PursuedWhaleToken copy() {
|
|
return new PursuedWhaleToken(this);
|
|
}
|
|
}
|