mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
[OTJ] Implement Highway Robbery
This commit is contained in:
parent
e5f058dc2f
commit
33cef1f810
2 changed files with 47 additions and 0 deletions
46
Mage.Sets/src/mage/cards/h/HighwayRobbery.java
Normal file
46
Mage.Sets/src/mage/cards/h/HighwayRobbery.java
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
package mage.cards.h;
|
||||||
|
|
||||||
|
import mage.abilities.costs.OrCost;
|
||||||
|
import mage.abilities.costs.common.DiscardCardCost;
|
||||||
|
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||||
|
import mage.abilities.effects.common.DoIfCostPaid;
|
||||||
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
import mage.abilities.keyword.PlotAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class HighwayRobbery extends CardImpl {
|
||||||
|
|
||||||
|
public HighwayRobbery(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}");
|
||||||
|
|
||||||
|
// You may discard a card or sacrifice a land. If you do, draw two cards.
|
||||||
|
this.getSpellAbility().addEffect(new DoIfCostPaid(
|
||||||
|
new DrawCardSourceControllerEffect(2),
|
||||||
|
new OrCost(
|
||||||
|
"discard a card or sacrifice a land",
|
||||||
|
new DiscardCardCost(),
|
||||||
|
new SacrificeTargetCost(StaticFilters.FILTER_LAND_A)
|
||||||
|
)
|
||||||
|
));
|
||||||
|
|
||||||
|
// Plot {1}{R}
|
||||||
|
this.addAbility(new PlotAbility("{1}{R}"));
|
||||||
|
}
|
||||||
|
|
||||||
|
private HighwayRobbery(final HighwayRobbery card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public HighwayRobbery copy() {
|
||||||
|
return new HighwayRobbery(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -116,6 +116,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Hellspur Brute", 127, Rarity.UNCOMMON, mage.cards.h.HellspurBrute.class));
|
cards.add(new SetCardInfo("Hellspur Brute", 127, Rarity.UNCOMMON, mage.cards.h.HellspurBrute.class));
|
||||||
cards.add(new SetCardInfo("Hellspur Posse Boss", 128, Rarity.RARE, mage.cards.h.HellspurPosseBoss.class));
|
cards.add(new SetCardInfo("Hellspur Posse Boss", 128, Rarity.RARE, mage.cards.h.HellspurPosseBoss.class));
|
||||||
cards.add(new SetCardInfo("High Noon", 15, Rarity.RARE, mage.cards.h.HighNoon.class));
|
cards.add(new SetCardInfo("High Noon", 15, Rarity.RARE, mage.cards.h.HighNoon.class));
|
||||||
|
cards.add(new SetCardInfo("Highway Robbery", 129, Rarity.COMMON, mage.cards.h.HighwayRobbery.class));
|
||||||
cards.add(new SetCardInfo("Hollow Marauder", 90, Rarity.UNCOMMON, mage.cards.h.HollowMarauder.class));
|
cards.add(new SetCardInfo("Hollow Marauder", 90, Rarity.UNCOMMON, mage.cards.h.HollowMarauder.class));
|
||||||
cards.add(new SetCardInfo("Holy Cow", 16, Rarity.COMMON, mage.cards.h.HolyCow.class));
|
cards.add(new SetCardInfo("Holy Cow", 16, Rarity.COMMON, mage.cards.h.HolyCow.class));
|
||||||
cards.add(new SetCardInfo("Honest Rutstein", 207, Rarity.UNCOMMON, mage.cards.h.HonestRutstein.class));
|
cards.add(new SetCardInfo("Honest Rutstein", 207, Rarity.UNCOMMON, mage.cards.h.HonestRutstein.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue