mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[KHM] Fixed In Search of Greatness allowing you to cast non-permanent. Closes #9500.
This commit is contained in:
parent
8b5fac2675
commit
e6a7605fd7
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ import mage.constants.Outcome;
|
|||
import mage.constants.TargetController;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterPermanentCard;
|
||||
import mage.filter.predicate.mageobject.ManaValuePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
@ -81,7 +82,7 @@ class InSearchOfGreatnessEffect extends OneShotEffect {
|
|||
.filter(permanent -> !sourceRef.refersTo(permanent, game))
|
||||
.mapToInt(MageObject::getManaValue)
|
||||
.sum();
|
||||
FilterCard filter = new FilterCard();
|
||||
FilterCard filter = new FilterPermanentCard();
|
||||
filter.add(new ManaValuePredicate(ComparisonType.EQUAL_TO, manaValue + 1));
|
||||
return CardUtil.castSpellWithAttributesForFree(
|
||||
controller, source, game, new CardsImpl(controller.getHand()), filter
|
||||
|
|
Loading…
Reference in a new issue