mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Tweak previous fix
This commit is contained in:
@@ -195,10 +195,10 @@ public class SFilterUtil {
|
|||||||
result = !color.isMulticolor();
|
result = !color.isMulticolor();
|
||||||
if (colors != MagicColor.ALL_COLORS) {
|
if (colors != MagicColor.ALL_COLORS) {
|
||||||
if (useColorIdentity) {
|
if (useColorIdentity) {
|
||||||
result &= color.hasAnyColor(colors);
|
result = result && color.hasAnyColor(colors);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result &= rules.canCastWithAvailable(colors);
|
result = result && rules.canCastWithAvailable(colors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -206,9 +206,9 @@ public class SFilterUtil {
|
|||||||
if (colors != 0 && colors != MagicColor.ALL_COLORS) {
|
if (colors != 0 && colors != MagicColor.ALL_COLORS) {
|
||||||
//if colorless filtered out ensure phyrexian cards don't appear
|
//if colorless filtered out ensure phyrexian cards don't appear
|
||||||
//unless at least one of their colors is selected
|
//unless at least one of their colors is selected
|
||||||
result &= color.hasAnyColor(colors);
|
result = result && color.hasAnyColor(colors);
|
||||||
}
|
}
|
||||||
result &= !color.isColorless();
|
result = result && !color.isColorless();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user