*Fixed a stupid oversight in the ManaNeededToAvoidNegativeEffect code.

This commit is contained in:
Hellfish
2011-09-22 14:51:23 +00:00
parent ec65b5d300
commit 6cae7c4c26

View File

@@ -753,7 +753,7 @@ public class ComputerUtil {
} }
for(String col : colorsNeededToAvoidNegativeEffect) { for(String col : colorsNeededToAvoidNegativeEffect) {
if(col.equalsIgnoreCase(colors.get(j)) if(col.equalsIgnoreCase(colors.get(j))
|| col.substring(0,1).equalsIgnoreCase(colors.get(j))) { || CardUtil.getShortColor(col).equalsIgnoreCase(colors.get(j))) {
res.add(am); res.add(am);
} }
} }
@@ -772,7 +772,7 @@ public class ComputerUtil {
} }
for(String col : colorsNeededToAvoidNegativeEffect) { for(String col : colorsNeededToAvoidNegativeEffect) {
if(col.equalsIgnoreCase(colors.get(j)) if(col.equalsIgnoreCase(colors.get(j))
|| col.substring(0,1).equalsIgnoreCase(colors.get(j))) { || CardUtil.getShortColor(col).equalsIgnoreCase(colors.get(j))) {
res.add(am); res.add(am);
} }
} }