mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Green Sun's Zenith can search Dryad Arbor now
This commit is contained in:
parent
4aa0f8beda
commit
4c3a9e5c50
2 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue