[STX] Implemented Pest Summoning

This commit is contained in:
Evan Kranzler 2021-03-25 20:12:43 -04:00
parent c4f65177e3
commit 69e38a84ce
3 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,33 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.effects.common.GainLifeEffect;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class PestToken2 extends TokenImpl {
public PestToken2() {
super("Pest", "1/1 black and green Pest creature token with \"When this creature dies, you gain 1 life.\"");
cardType.add(CardType.CREATURE);
color.setBlack(true);
color.setGreen(true);
subtype.add(SubType.PEST);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(new DiesSourceTriggeredAbility(new GainLifeEffect(1)));
}
private PestToken2(final PestToken2 token) {
super(token);
}
public PestToken2 copy() {
return new PestToken2(this);
}
}