mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Fixed getMostProminentColors.
This commit is contained in:
@@ -1895,6 +1895,9 @@ public class CardFactoryUtil {
|
|||||||
public static byte getMostProminentColors(final List<Card> list) {
|
public static byte getMostProminentColors(final List<Card> list) {
|
||||||
int cntColors = MagicColor.WUBRG.length;
|
int cntColors = MagicColor.WUBRG.length;
|
||||||
final Integer[] map = new Integer[cntColors];
|
final Integer[] map = new Integer[cntColors];
|
||||||
|
for(int i = 0; i < cntColors; i++) {
|
||||||
|
map[i] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
for (final Card crd : list) {
|
for (final Card crd : list) {
|
||||||
ColorSet color = CardUtil.getColors(crd);
|
ColorSet color = CardUtil.getColors(crd);
|
||||||
|
|||||||
Reference in New Issue
Block a user