- greatestCMC property shouldn't be filtering by creatures

This commit is contained in:
Sol
2016-09-27 12:52:25 +00:00
parent 7541a56216
commit ae9af402e9

View File

@@ -4842,7 +4842,7 @@ public class Card extends GameEntity implements Comparable<Card> {
} }
} }
} else if (property.startsWith("greatestCMC")) { } else if (property.startsWith("greatestCMC")) {
CardCollectionView cards = CardLists.filter(game.getCardsIn(ZoneType.Battlefield), Presets.CREATURES); CardCollectionView cards = game.getCardsIn(ZoneType.Battlefield);
if (property.contains("ControlledBy")) { if (property.contains("ControlledBy")) {
FCollectionView<Player> p = AbilityUtils.getDefinedPlayers(source, property.split("ControlledBy")[1], null); FCollectionView<Player> p = AbilityUtils.getDefinedPlayers(source, property.split("ControlledBy")[1], null);
cards = CardLists.filterControlledBy(cards, p); cards = CardLists.filterControlledBy(cards, p);