mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Implemented Rats' Feast
This commit is contained in:
parent
56cc912bbf
commit
70dece0343
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/r/RatsFeast.java
Normal file
49
Mage.Sets/src/mage/cards/r/RatsFeast.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.target.common.TargetCardInASingleGraveyard;
|
||||
import mage.target.targetadjustment.TargetAdjuster;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RatsFeast extends CardImpl {
|
||||
|
||||
public RatsFeast(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{B}");
|
||||
|
||||
// Exile X target cards from a single graveyard.
|
||||
this.getSpellAbility().addEffect(new ExileTargetEffect(
|
||||
"Exile X target cards from a single graveyard.", true
|
||||
));
|
||||
this.getSpellAbility().setTargetAdjuster(RatsFeastAdjuster.instance);
|
||||
}
|
||||
|
||||
private RatsFeast(final RatsFeast card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RatsFeast copy() {
|
||||
return new RatsFeast(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum RatsFeastAdjuster implements TargetAdjuster {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public void adjustTargets(Ability ability, Game game) {
|
||||
int xValue = ability.getManaCostsToPay().getX();
|
||||
ability.getTargets().clear();
|
||||
ability.addTarget(new TargetCardInASingleGraveyard(xValue, xValue, StaticFilters.FILTER_CARD));
|
||||
}
|
||||
}
|
|
@ -121,6 +121,7 @@ public final class Judgment extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Prismatic Strands", 18, Rarity.COMMON, mage.cards.p.PrismaticStrands.class));
|
||||
cards.add(new SetCardInfo("Pulsemage Advocate", 19, Rarity.RARE, mage.cards.p.PulsemageAdvocate.class));
|
||||
cards.add(new SetCardInfo("Quiet Speculation", 49, Rarity.UNCOMMON, mage.cards.q.QuietSpeculation.class));
|
||||
cards.add(new SetCardInfo("Rats' Feast", 71, Rarity.COMMON, mage.cards.r.RatsFeast.class));
|
||||
cards.add(new SetCardInfo("Ray of Revelation", 20, Rarity.COMMON, mage.cards.r.RayOfRevelation.class));
|
||||
cards.add(new SetCardInfo("Riftstone Portal", 143, Rarity.UNCOMMON, mage.cards.r.RiftstonePortal.class));
|
||||
cards.add(new SetCardInfo("Scalpelexis", 50, Rarity.RARE, mage.cards.s.Scalpelexis.class));
|
||||
|
|
Loading…
Reference in a new issue