- Missing check in Cost_Payment for computer remove counters.

This commit is contained in:
jendave
2011-08-06 08:28:40 +00:00
parent b3076dede7
commit ff3760ea48

View File

@@ -320,7 +320,7 @@ public class Cost_Payment {
}
// double check if counters available? Real check is in ComputerUtil.canPayAdditionalCosts()
if (cost.getCounterNum() > card.getCounters(cost.getCounterType())){
if (cost.getSubCounter() && cost.getCounterNum() > card.getCounters(cost.getCounterType())){
System.out.println("Not enough " + cost.getCounterType() + " on " + card.getName());
return;
}