mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[SNC] Implemented Fake Your Own Death
This commit is contained in:
parent
37a7ca2dc9
commit
5c8585b1b8
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/f/FakeYourOwnDeath.java
Normal file
43
Mage.Sets/src/mage/cards/f/FakeYourOwnDeath.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue