mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
[MKM] Implement Judith, Carnage Connoisseur (#11821)
This commit is contained in:
parent
201edec5f9
commit
477ccb99e6
3 changed files with 131 additions and 0 deletions
36
Mage/src/main/java/mage/game/permanent/token/ImpToken.java
Normal file
36
Mage/src/main/java/mage/game/permanent/token/ImpToken.java
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamagePlayersEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
|
||||
public final class ImpToken extends TokenImpl {
|
||||
|
||||
public ImpToken() {
|
||||
super("Imp Token", "2/2 red Imp creature token with \"When this creature dies, it deals 2 damage to each opponent.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.IMP);
|
||||
color.setRed(true);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
|
||||
// When this creature dies, it deals 2 damage to each opponent.
|
||||
Effect effect = new DamagePlayersEffect(2, TargetController.OPPONENT);
|
||||
effect.setText("it deals 2 damage to each opponent");
|
||||
Ability ability = new DiesSourceTriggeredAbility(effect);
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private ImpToken(final ImpToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public ImpToken copy() {
|
||||
return new ImpToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue