mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
fixed ManaCost.isColor() to return true when comparing any size colorless mana cost to a type of "1"
This commit is contained in:
@@ -183,7 +183,8 @@ public class ManaCost {
|
|||||||
*/
|
*/
|
||||||
public final boolean isColor(final String color) {
|
public final boolean isColor(final String color) {
|
||||||
for (final Object s : this.manaPart) {
|
for (final Object s : this.manaPart) {
|
||||||
if (s.toString().contains(color)) {
|
if (s.toString().contains(color)
|
||||||
|
|| (s.toString().matches(".*[0-9].*") && "1".equals(color))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user