Player: updated getColoredCardsInPlay, and add second form

This commit is contained in:
Hanmac
2016-10-26 08:16:29 +00:00
parent 5e9510d6d6
commit d1018953cd

View File

@@ -2555,7 +2555,11 @@ public class Player extends GameEntity implements Comparable<Player> {
}
public CardCollectionView getColoredCardsInPlay(final String color) {
return CardLists.filter(getCardsIn(ZoneType.Battlefield), CardPredicates.isColor(MagicColor.fromName(color)));
return CardLists.getColor(getCardsIn(ZoneType.Battlefield), MagicColor.fromName(color));
}
public CardCollectionView getColoredCardsInPlay(final byte color) {
return CardLists.getColor(getCardsIn(ZoneType.Battlefield), color);
}
public int getTokenDoublersMagnitude() {