diff --git a/Mage.Sets/src/mage/cards/f/FakeYourOwnDeath.java b/Mage.Sets/src/mage/cards/f/FakeYourOwnDeath.java new file mode 100644 index 0000000000..3a2ab64cf1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FakeYourOwnDeath.java @@ -0,0 +1,43 @@ +package mage.cards.f; + +import java.util.UUID; + +import mage.abilities.Ability; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.TreasureToken; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author weirddan455 + */ +public final class FakeYourOwnDeath extends CardImpl { + + public FakeYourOwnDeath(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}"); + + // Until end of turn, target creature gets +2/+0 and gains "When this creature dies, return it to the battlefield tapped under its owner's control and you create a Treasure token." + this.getSpellAbility().addEffect(new BoostTargetEffect(2, 0).setText("Until end of turn, target creature gets +2/+0")); + Ability gainedAbility = new DiesSourceTriggeredAbility(new ReturnSourceFromGraveyardToBattlefieldEffect(true)); + gainedAbility.addEffect(new CreateTokenEffect(new TreasureToken())); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect(gainedAbility) + .setText("and gains \"When this creature dies, return it to the battlefield tapped under its owner's control and you create a Treasure token.\"")); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private FakeYourOwnDeath(final FakeYourOwnDeath card) { + super(card); + } + + @Override + public FakeYourOwnDeath copy() { + return new FakeYourOwnDeath(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java index 45171d80ef..e77043e832 100644 --- a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java +++ b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java @@ -103,6 +103,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet { cards.add(new SetCardInfo("Expendable Lackey", 43, Rarity.COMMON, mage.cards.e.ExpendableLackey.class)); cards.add(new SetCardInfo("Extract the Truth", 78, Rarity.COMMON, mage.cards.e.ExtractTheTruth.class)); cards.add(new SetCardInfo("Faerie Vandal", 44, Rarity.UNCOMMON, mage.cards.f.FaerieVandal.class)); + cards.add(new SetCardInfo("Fake Your Own Death", 79, Rarity.COMMON, mage.cards.f.FakeYourOwnDeath.class)); cards.add(new SetCardInfo("Fatal Grudge", 187, Rarity.UNCOMMON, mage.cards.f.FatalGrudge.class)); cards.add(new SetCardInfo("Fight Rigging", 145, Rarity.RARE, mage.cards.f.FightRigging.class)); cards.add(new SetCardInfo("Fleetfoot Dancer", 188, Rarity.RARE, mage.cards.f.FleetfootDancer.class));