[MKM] Implement Judith, Carnage Connoisseur (#11821)

This commit is contained in:
Matthew Wilson 2024-02-21 06:36:34 +02:00 committed by GitHub
parent 201edec5f9
commit 477ccb99e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 131 additions and 0 deletions

View 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);
}
}