Implemented Twinblade Assassin

This commit is contained in:
Evan Kranzler 2020-06-16 19:15:05 -04:00
parent b84fd81281
commit 794a0509b8
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,47 @@
package mage.cards.t;
import mage.MageInt;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.condition.common.MorbidCondition;
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.TargetController;
import mage.watchers.common.MorbidWatcher;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class TwinbladeAssassin extends CardImpl {
public TwinbladeAssassin(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{G}");
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.ASSASSIN);
this.power = new MageInt(5);
this.toughness = new MageInt(4);
// At the beginning of your end step, if a creature died this turn, draw a card.
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
new BeginningOfEndStepTriggeredAbility(
new DrawCardSourceControllerEffect(1), TargetController.YOU, false
), MorbidCondition.instance, "At the beginning of your end step, " +
"if a creature died this turn, draw a card."
), new MorbidWatcher());
}
private TwinbladeAssassin(final TwinbladeAssassin card) {
super(card);
}
@Override
public TwinbladeAssassin copy() {
return new TwinbladeAssassin(this);
}
}

View file

@ -254,6 +254,7 @@ public final class CoreSet2021 extends ExpansionSet {
cards.add(new SetCardInfo("Trufflesnout", 212, Rarity.COMMON, mage.cards.t.Trufflesnout.class));
cards.add(new SetCardInfo("Turn to Slag", 168, Rarity.COMMON, mage.cards.t.TurnToSlag.class));
cards.add(new SetCardInfo("Turret Ogre", 169, Rarity.COMMON, mage.cards.t.TurretOgre.class));
cards.add(new SetCardInfo("Twinblade Assassin", 226, Rarity.UNCOMMON, mage.cards.t.TwinbladeAssassin.class));
cards.add(new SetCardInfo("Ugin, the Spirit Dragon", 1, Rarity.MYTHIC, mage.cards.u.UginTheSpiritDragon.class));
cards.add(new SetCardInfo("Unleash Fury", 170, Rarity.UNCOMMON, mage.cards.u.UnleashFury.class));
cards.add(new SetCardInfo("Unsubstantiate", 82, Rarity.UNCOMMON, mage.cards.u.Unsubstantiate.class));