mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Fix filtering when only multicolor selected
This commit is contained in:
@@ -175,12 +175,7 @@ public class SFilterUtil {
|
|||||||
boolean result = true;
|
boolean result = true;
|
||||||
if (wantMulticolor) {
|
if (wantMulticolor) {
|
||||||
if (colors == 0) { //handle showing all multi-color cards if all 5 colors are filtered
|
if (colors == 0) { //handle showing all multi-color cards if all 5 colors are filtered
|
||||||
if (color.isMulticolor()) {
|
result = color.isMulticolor() || (wantColorless && color.isColorless());
|
||||||
result = true;
|
|
||||||
}
|
|
||||||
else if (wantColorless && color.isColorless()) {
|
|
||||||
result = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (colors != MagicColor.ALL_COLORS) {
|
else if (colors != MagicColor.ALL_COLORS) {
|
||||||
if (useColorIdentity) {
|
if (useColorIdentity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user