Green Sun's Zenith can search Dryad Arbor now

This commit is contained in:
Loki 2012-06-07 00:55:20 +03:00
parent 4aa0f8beda
commit 4c3a9e5c50
2 changed files with 4 additions and 0 deletions

View file

@ -49,6 +49,8 @@ public class DryadArbor extends CardImpl<DryadArbor> {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
this.getColor().setGreen(true);
// <i>(Dryad Arbor isn't a spell, it's affected by summoning sickness, and it has "{tap}: Add {G} to your mana pool.")</i>
this.addAbility(new GreenManaAbility());
}

View file

@ -36,6 +36,7 @@ import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.ShuffleSpellEffect;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.filter.Filter;
import mage.filter.FilterCard;
import mage.game.Game;
import mage.players.Player;
@ -87,6 +88,7 @@ class GreenSunsZenithSearchEffect extends OneShotEffect<GreenSunsZenithSearchEff
filter.getColor().setGreen(true);
filter.setUseColor(true);
filter.getCardType().add(CardType.CREATURE);
filter.setScopeCardType(Filter.ComparisonScope.Any);
//Set the mana cost one higher to 'emulate' a less than or equal to comparison.
filter.setConvertedManaCost(source.getManaCostsToPay().getX() + 1);
filter.setConvertedManaCostComparison(ComparisonType.LessThan);