mirror of
https://github.com/magefree/mage.git
synced 2026-01-22 11:19:55 -08:00
* Added one more Morph test.
This commit is contained in:
parent
4b985b322f
commit
f1b279d650
4 changed files with 48 additions and 9 deletions
|
|
@ -57,7 +57,7 @@ public class GreenSunsZenith extends CardImpl {
|
|||
public GreenSunsZenith(UUID ownerId) {
|
||||
super(ownerId, 81, "Green Sun's Zenith", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{X}{G}");
|
||||
this.expansionSetCode = "MBS";
|
||||
this.color.setGreen(true);
|
||||
|
||||
// Search your library for a green creature card with converted mana cost X or less,
|
||||
// put it onto the battlefield, then shuffle your library.
|
||||
// Shuffle Green Sun's Zenith into its owner's library.
|
||||
|
|
@ -96,8 +96,7 @@ class GreenSunsZenithSearchEffect extends OneShotEffect {
|
|||
int xValue = source.getManaCostsToPay().getX() + 1;
|
||||
FilterCard filter = new FilterCard("green creature card with converted mana cost " + xValue + " or less");
|
||||
filter.add(new ColorPredicate(ObjectColor.GREEN));
|
||||
filter.add(new CardTypePredicate(CardType.CREATURE));
|
||||
|
||||
filter.add(new CardTypePredicate(CardType.CREATURE));
|
||||
filter.add(new ConvertedManaCostPredicate(Filter.ComparisonType.LessThan, xValue));
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||
if (player.searchLibrary(target, game)) {
|
||||
|
|
|
|||
|
|
@ -28,14 +28,13 @@
|
|||
package mage.sets.morningtide;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.abilities.costs.common.TapTargetCost;
|
||||
import mage.abilities.mana.SimpleManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
|
|
@ -48,7 +47,6 @@ import mage.target.common.TargetControlledCreaturePermanent;
|
|||
*/
|
||||
public class HeritageDruid extends CardImpl {
|
||||
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("untapped Elves you control");
|
||||
|
||||
static {
|
||||
|
|
@ -61,10 +59,12 @@ public class HeritageDruid extends CardImpl {
|
|||
this.expansionSetCode = "MOR";
|
||||
this.subtype.add("Elf");
|
||||
this.subtype.add("Druid");
|
||||
this.color.setGreen(true);
|
||||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 3, 0, 0, 0, 0, 0), new TapTargetCost(new TargetControlledCreaturePermanent(3, 3, filter, false))));
|
||||
|
||||
// Tap three untapped Elves you control: Add {G}{G}{G} to your mana pool.
|
||||
this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 3, 0, 0, 0, 0, 0), new TapTargetCost(new TargetControlledCreaturePermanent(3, 3, filter, true))));
|
||||
}
|
||||
|
||||
public HeritageDruid(final HeritageDruid card) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue