fixed ManaCost.isColor() to return true when comparing any size colorless mana cost to a type of "1"

This commit is contained in:
ArsenalNut
2012-01-16 04:46:07 +00:00
parent 00545e0983
commit 8d855efca3

View File

@@ -183,7 +183,8 @@ public class ManaCost {
*/
public final boolean isColor(final String color) {
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;
}
}