forked from External/mage
[OTJ] Implement Take the Fall
This commit is contained in:
parent
fddaf5914e
commit
95d04bbd51
2 changed files with 62 additions and 0 deletions
61
Mage.Sets/src/mage/cards/t/TakeTheFall.java
Normal file
61
Mage.Sets/src/mage/cards/t/TakeTheFall.java
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.predicate.mageobject.OutlawPredicate;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class TakeTheFall extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterPermanent("an outlaw");
|
||||
|
||||
static {
|
||||
filter.add(OutlawPredicate.instance);
|
||||
}
|
||||
|
||||
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter, true);
|
||||
private static final Hint hint = new ConditionHint(condition, "you control an outlaw");
|
||||
|
||||
public TakeTheFall(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
|
||||
|
||||
// Target creature gets -1/-0 until end of turn. It gets -4/-0 until end of turn instead if you control an outlaw.
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new ConditionalContinuousEffect(
|
||||
new BoostTargetEffect(-4, 0, Duration.EndOfTurn),
|
||||
new BoostTargetEffect(-1, 0, Duration.EndOfTurn),
|
||||
condition,
|
||||
"Target creature gets -1/-0 until end of turn. It gets -4/-0 until end of turn instead if you control an outlaw."));
|
||||
this.getSpellAbility().addHint(hint);
|
||||
|
||||
// Draw a card.
|
||||
this.getSpellAbility().addEffect(
|
||||
new DrawCardSourceControllerEffect(1)
|
||||
.concatBy("<br>")
|
||||
);
|
||||
}
|
||||
|
||||
private TakeTheFall(final TakeTheFall card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TakeTheFall copy() {
|
||||
return new TakeTheFall(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -247,6 +247,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Swamp", 274, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Take Up the Shield", 34, Rarity.COMMON, mage.cards.t.TakeUpTheShield.class));
|
||||
cards.add(new SetCardInfo("Take for a Ride", 148, Rarity.UNCOMMON, mage.cards.t.TakeForARide.class));
|
||||
cards.add(new SetCardInfo("Take the Fall", 73, Rarity.COMMON, mage.cards.t.TakeTheFall.class));
|
||||
cards.add(new SetCardInfo("Terror of the Peaks", 149, Rarity.MYTHIC, mage.cards.t.TerrorOfThePeaks.class));
|
||||
cards.add(new SetCardInfo("The Key to the Vault", 54, Rarity.RARE, mage.cards.t.TheKeyToTheVault.class));
|
||||
cards.add(new SetCardInfo("This Town Ain't Big Enough", 74, Rarity.UNCOMMON, mage.cards.t.ThisTownAintBigEnough.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue