mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
Merge
This commit is contained in:
commit
9c4297c74a
4 changed files with 180 additions and 5 deletions
|
|
@ -43,6 +43,7 @@ import mage.target.common.TargetCardInLibrary;
|
|||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.filter.Filter.ComparisonType;
|
||||
|
||||
/**
|
||||
* @author Loki
|
||||
|
|
@ -84,7 +85,9 @@ class GreenSunsZenithSearchEffect extends OneShotEffect<GreenSunsZenithSearchEff
|
|||
filter.getColor().setGreen(true);
|
||||
filter.setUseColor(true);
|
||||
filter.getCardType().add(CardType.CREATURE);
|
||||
filter.setConvertedManaCost(source.getManaCostsToPay().getVariableCosts().get(0).getAmount());
|
||||
//Set the mana cost one higher to 'emulate' a less than or equal to comparison.
|
||||
filter.setConvertedManaCost(source.getManaCostsToPay().getVariableCosts().get(0).getAmount() + 1);
|
||||
filter.setConvertedManaCostComparison(ComparisonType.LessThan);
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||
if (player.searchLibrary(target, game)) {
|
||||
if (target.getTargets().size() > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue