mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-12 08:48:39 +00:00
Update ComputerUtilCard.java
This commit is contained in:
@@ -919,7 +919,7 @@ public class ComputerUtilCard {
|
|||||||
return MagicColor.Constant.WHITE; // no difference, there was no prominent color
|
return MagicColor.Constant.WHITE; // no difference, there was no prominent color
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getMostProminentColor(final CardCollectionView list, final List<String> restrictedToColors) {
|
public static String getMostProminentColor(final CardCollectionView list, final Iterable<String> restrictedToColors) {
|
||||||
byte colors = CardFactoryUtil.getMostProminentColorsFromList(list, restrictedToColors);
|
byte colors = CardFactoryUtil.getMostProminentColorsFromList(list, restrictedToColors);
|
||||||
for (byte c : MagicColor.WUBRG) {
|
for (byte c : MagicColor.WUBRG) {
|
||||||
if ((colors & c) != 0) {
|
if ((colors & c) != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user