[ZNR] Implemented Relic Robber

This commit is contained in:
Evan Kranzler 2020-09-06 15:06:35 -04:00
parent 719fa9a978
commit f977decf6e
3 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.effects.common.combat.CantBlockSourceEffect;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.TargetController;
import java.util.ArrayList;
import java.util.List;
public final class RelicRobberToken extends TokenImpl {
static final private List<String> tokenImageSets = new ArrayList<>();
public RelicRobberToken() {
super("Goblin Construct", "0/1 colorless Goblin Construct artifact creature token with \"This creature can't block\" and \"At the beginning of your upkeep, this creature deals 1 damage to you.\"");
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
subtype.add(SubType.GOBLIN);
subtype.add(SubType.CONSTRUCT);
power = new MageInt(0);
toughness = new MageInt(1);
this.addAbility(new SimpleStaticAbility(
new CantBlockSourceEffect(Duration.WhileOnBattlefield).setText("this creature can't block")
));
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new DamageControllerEffect(
1, "this creature"
), TargetController.YOU, false));
}
public RelicRobberToken(final RelicRobberToken token) {
super(token);
}
public RelicRobberToken copy() {
return new RelicRobberToken(this);
}
}