mirror of
https://github.com/correl/mage.git
synced 2025-01-16 11:08:00 +00:00
[MOM] Implement Final Flourish
This commit is contained in:
parent
604877c12b
commit
a60b1cc835
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/f/FinalFlourish.java
Normal file
47
Mage.Sets/src/mage/cards/f/FinalFlourish.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.AddContinuousEffectToGame;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FinalFlourish extends CardImpl {
|
||||
|
||||
public FinalFlourish(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}");
|
||||
|
||||
// Kicker--Sacrifice an artifact or creature.
|
||||
this.addAbility(new KickerAbility(new SacrificeTargetCost(StaticFilters.FILTER_CONTROLLED_ARTIFACT_OR_CREATURE_SHORT_TEXT)));
|
||||
|
||||
// Target creature gets -2/-2 until end of turn. If this spell was kicked, that creature gets -6/-6 until end of turn instead.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(-6, -6, Duration.EndOfTurn)),
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(-2, -2, Duration.EndOfTurn)),
|
||||
KickedCondition.ONCE, "target creature gets -2/-2 until end of turn. " +
|
||||
"If this spell was kicked, that creature gets -6/-6 until end of turn instead"
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent().withChooseHint("creature that gets -/-"));
|
||||
}
|
||||
|
||||
private FinalFlourish(final FinalFlourish card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinalFlourish copy() {
|
||||
return new FinalFlourish(this);
|
||||
}
|
||||
}
|
|
@ -79,6 +79,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Failed Conversion", 103, Rarity.COMMON, mage.cards.f.FailedConversion.class));
|
||||
cards.add(new SetCardInfo("Fairgrounds Trumpeter", 335, Rarity.COMMON, mage.cards.f.FairgroundsTrumpeter.class));
|
||||
cards.add(new SetCardInfo("Fearless Skald", 138, Rarity.UNCOMMON, mage.cards.f.FearlessSkald.class));
|
||||
cards.add(new SetCardInfo("Final Flourish", 104, Rarity.COMMON, mage.cards.f.FinalFlourish.class));
|
||||
cards.add(new SetCardInfo("Forest", 281, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Furnace Gremlin", 139, Rarity.UNCOMMON, mage.cards.f.FurnaceGremlin.class));
|
||||
cards.add(new SetCardInfo("Furnace Host Charger", 140, Rarity.COMMON, mage.cards.f.FurnaceHostCharger.class));
|
||||
|
|
Loading…
Reference in a new issue