mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[DSK] Implement Final Vengeance
This commit is contained in:
parent
b509e29c31
commit
3336cec2c7
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/f/FinalVengeance.java
Normal file
47
Mage.Sets/src/mage/cards/f/FinalVengeance.java
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FinalVengeance extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterPermanent("creature or enchantment");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
CardType.CREATURE.getPredicate(),
|
||||
CardType.ENCHANTMENT.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public FinalVengeance(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}");
|
||||
|
||||
// As an additional cost to cast this spell, sacrifice a creature or enchantment.
|
||||
this.getSpellAbility().addCost(new SacrificeTargetCost(filter));
|
||||
|
||||
// Exile target creature.
|
||||
this.getSpellAbility().addEffect(new ExileTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
}
|
||||
|
||||
private FinalVengeance(final FinalVengeance card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinalVengeance copy() {
|
||||
return new FinalVengeance(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -58,6 +58,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Fear of Missing Out", 136, Rarity.RARE, mage.cards.f.FearOfMissingOut.class));
|
||||
cards.add(new SetCardInfo("Fear of Surveillance", 11, Rarity.COMMON, mage.cards.f.FearOfSurveillance.class));
|
||||
cards.add(new SetCardInfo("Fear of the Dark", 98, Rarity.COMMON, mage.cards.f.FearOfTheDark.class));
|
||||
cards.add(new SetCardInfo("Final Vengeance", 99, Rarity.COMMON, mage.cards.f.FinalVengeance.class));
|
||||
cards.add(new SetCardInfo("Floodfarm Verge", 259, Rarity.RARE, mage.cards.f.FloodfarmVerge.class));
|
||||
cards.add(new SetCardInfo("Floodpits Drowner", 59, Rarity.UNCOMMON, mage.cards.f.FloodpitsDrowner.class));
|
||||
cards.add(new SetCardInfo("Forest", 276, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue