- This fixes two small errors in rev 1739. Added "CardListUtil." to sumCMC(human) and sumCMC(computer).

This commit is contained in:
jendave
2011-08-06 05:49:12 +00:00
parent ff5dfb8743
commit 3bdfb9cad0

View File

@@ -3112,11 +3112,11 @@ public class CardFactory implements NewConstants {
CardList computer = new CardList(AllZone.Computer_Play.getCards()); CardList computer = new CardList(AllZone.Computer_Play.getCards());
human = human.getValidCards(Tgts); human = human.getValidCards(Tgts);
int humanvalue = sumCMC(human); int humanvalue = CardListUtil.sumCMC(human);
humanvalue += human.getType("Land").size(); humanvalue += human.getType("Land").size();
humanvalue += human.getTokens().size() * 3; // X = total converted mana cost + number of lands + 3 * number of tokens (Human) humanvalue += human.getTokens().size() * 3; // X = total converted mana cost + number of lands + 3 * number of tokens (Human)
computer = computer.getValidCards(Tgts); computer = computer.getValidCards(Tgts);
int computervalue = sumCMC(computer); int computervalue = CardListUtil.sumCMC(computer);
computervalue += computer.getType("Land").size(); computervalue += computer.getType("Land").size();
computervalue += computer.getTokens().size() * 3; // Y = total converted mana cost + number of lands + 3 * number of tokens (Computer) computervalue += computer.getTokens().size() * 3; // Y = total converted mana cost + number of lands + 3 * number of tokens (Computer)