mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
[STX] Implemented Pest Summoning
This commit is contained in:
parent
c4f65177e3
commit
69e38a84ce
3 changed files with 68 additions and 0 deletions
33
Mage/src/main/java/mage/game/permanent/token/PestToken2.java
Normal file
33
Mage/src/main/java/mage/game/permanent/token/PestToken2.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue