mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
Added some tests and minor changes.
This commit is contained in:
parent
20289f836f
commit
bb9dd1600e
6 changed files with 164 additions and 13 deletions
|
|
@ -58,9 +58,9 @@ public class GhostQuarter extends CardImpl {
|
|||
super(ownerId, 240, "Ghost Quarter", Rarity.UNCOMMON, new CardType[]{CardType.LAND}, "");
|
||||
this.expansionSetCode = "ISD";
|
||||
|
||||
// {tap}: Add {C} to your mana pool.
|
||||
// {T}: Add {C} to your mana pool.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
// {tap}, Sacrifice Ghost Quarter: Destroy target land. Its controller may search his or her library for a basic land card, put it onto the battlefield, then shuffle his or her library.
|
||||
// {T}, Sacrifice Ghost Quarter: Destroy target land. Its controller may search his or her library for a basic land card, put it onto the battlefield, then shuffle his or her library.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetLandPermanent());
|
||||
|
|
|
|||
|
|
@ -49,20 +49,19 @@ import mage.target.common.TargetCreaturePermanentAmount;
|
|||
*/
|
||||
public class AbzanCharm extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with power 3 or greater");
|
||||
private static final FilterCreaturePermanent FILTER = new FilterCreaturePermanent("creature with power 3 or greater");
|
||||
|
||||
static {
|
||||
filter.add(new PowerPredicate(Filter.ComparisonType.GreaterThan, 2));
|
||||
FILTER.add(new PowerPredicate(Filter.ComparisonType.GreaterThan, 2));
|
||||
}
|
||||
|
||||
public AbzanCharm(UUID ownerId) {
|
||||
super(ownerId, 161, "Abzan Charm", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{W}{B}{G}");
|
||||
this.expansionSetCode = "KTK";
|
||||
|
||||
|
||||
// Choose one -
|
||||
// *Exile target creature with power 3 or greater
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(FILTER));
|
||||
this.getSpellAbility().addEffect(new ExileTargetEffect());
|
||||
|
||||
// *You draw two cards and you lose 2 life
|
||||
|
|
|
|||
|
|
@ -46,10 +46,10 @@ import mage.filter.predicate.mageobject.CardTypePredicate;
|
|||
*/
|
||||
public class ZendikarResurgent extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("a creature spell");
|
||||
private static final FilterSpell FILTER = new FilterSpell("a creature spell");
|
||||
|
||||
static {
|
||||
filter.add(new CardTypePredicate(CardType.CREATURE));
|
||||
FILTER.add(new CardTypePredicate(CardType.CREATURE));
|
||||
}
|
||||
|
||||
public ZendikarResurgent(UUID ownerId) {
|
||||
|
|
@ -65,7 +65,7 @@ public class ZendikarResurgent extends CardImpl {
|
|||
SetTargetPointer.PERMANENT));
|
||||
|
||||
// Whenever you cast a creature spell, draw a card.
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(new DrawCardSourceControllerEffect(1), filter, false));
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(new DrawCardSourceControllerEffect(1), FILTER, false));
|
||||
}
|
||||
|
||||
public ZendikarResurgent(final ZendikarResurgent card) {
|
||||
|
|
|
|||
|
|
@ -44,10 +44,10 @@ import mage.target.common.TargetCardInLibrary;
|
|||
*/
|
||||
public class FlagstonesOfTrokair extends CardImpl {
|
||||
|
||||
private static final FilterLandCard filter = new FilterLandCard("Plains card");
|
||||
private static final FilterLandCard FILTER = new FilterLandCard("Plains card");
|
||||
|
||||
static {
|
||||
filter.add(new SubtypePredicate("Plains"));
|
||||
FILTER.add(new SubtypePredicate("Plains"));
|
||||
}
|
||||
|
||||
public FlagstonesOfTrokair(UUID ownerId) {
|
||||
|
|
@ -57,9 +57,9 @@ public class FlagstonesOfTrokair extends CardImpl {
|
|||
|
||||
// {tap}: Add {W} to your mana pool.
|
||||
this.addAbility(new WhiteManaAbility());
|
||||
|
||||
|
||||
// When Flagstones of Trokair is put into a graveyard from the battlefield, you may search your library for a Plains card and put it onto the battlefield tapped. If you do, shuffle your library.
|
||||
this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter), true, true), true));
|
||||
this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(FILTER), true, true), true));
|
||||
}
|
||||
|
||||
public FlagstonesOfTrokair(final FlagstonesOfTrokair card) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue