1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-05 09:12:29 -09:00

* Chord of Calling - Fixed that it was mandatory to find a card if it did exist.

This commit is contained in:
LevelX2 2015-04-05 00:28:22 +02:00
parent f61aa848cc
commit 18ce6a0305

View file

@ -98,7 +98,7 @@ class ChordofCallingSearchEffect extends OneShotEffect {
filter.add(new CardTypePredicate(CardType.CREATURE));
//Set the mana cost one higher to 'emulate' a less than or equal to comparison.
filter.add(new ConvertedManaCostPredicate(Filter.ComparisonType.LessThan, xCost + 1));
TargetCardInLibrary target = new TargetCardInLibrary(filter);
TargetCardInLibrary target = new TargetCardInLibrary(0,1,filter);
if (player.searchLibrary(target, game)) {
if (target.getTargets().size() > 0) {
Card card = player.getLibrary().getCard(target.getFirstTarget(), game);