mirror of
https://github.com/correl/mage.git
synced 2025-02-18 12:54:22 +00:00
[BRO] Implement Bushwhack
This commit is contained in:
parent
11dc750783
commit
7b07537288
2 changed files with 45 additions and 0 deletions
Mage.Sets/src/mage
44
Mage.Sets/src/mage/cards/b/Bushwhack.java
Normal file
44
Mage.Sets/src/mage/cards/b/Bushwhack.java
Normal file
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.FightTargetsEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Bushwhack extends CardImpl {
|
||||
|
||||
public Bushwhack(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{G}");
|
||||
|
||||
// Choose one --
|
||||
// * Search your library for a basic land card, reveal it, put it into your hand, then shuffle.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true
|
||||
));
|
||||
|
||||
// * Target creature you control fights target creature you don't control.
|
||||
this.getSpellAbility().addMode(new Mode(new FightTargetsEffect())
|
||||
.addTarget(new TargetControlledCreaturePermanent())
|
||||
.addTarget(new TargetPermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL)));
|
||||
}
|
||||
|
||||
private Bushwhack(final Bushwhack card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Bushwhack copy() {
|
||||
return new Bushwhack(this);
|
||||
}
|
||||
}
|
|
@ -48,6 +48,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Blast Zone", 258, Rarity.RARE, mage.cards.b.BlastZone.class));
|
||||
cards.add(new SetCardInfo("Brotherhood's End", 128, Rarity.RARE, mage.cards.b.BrotherhoodsEnd.class));
|
||||
cards.add(new SetCardInfo("Brushland", 259, Rarity.RARE, mage.cards.b.Brushland.class));
|
||||
cards.add(new SetCardInfo("Bushwhack", 174, Rarity.UNCOMMON, mage.cards.b.Bushwhack.class));
|
||||
cards.add(new SetCardInfo("Clay Champion", 230, Rarity.MYTHIC, mage.cards.c.ClayChampion.class));
|
||||
cards.add(new SetCardInfo("Clay Revenant", 118, Rarity.COMMON, mage.cards.c.ClayRevenant.class));
|
||||
cards.add(new SetCardInfo("Combat Courier", 77, Rarity.COMMON, mage.cards.c.CombatCourier.class));
|
||||
|
|
Loading…
Reference in a new issue