- Added Sword of the Ages

This commit is contained in:
jeffwadsworth
2011-10-06 23:14:37 +00:00
parent d70114acbd
commit 0239f25600
4 changed files with 39 additions and 0 deletions

View File

@@ -721,6 +721,21 @@ public class CardList implements Iterable<Card> {
}
return total;
}
/**
*
* <p>getTotalCreaturePower.</p>
*
* @return a int.
*/
public final int getTotalCreaturePower() {
int total = 0;
for (int i = 0; i < size(); i++) {
total += get(i).getCurrentPower();
}
return total;
}
/**
* <p>getHighestConvertedManaCost.</p>

View File

@@ -2905,6 +2905,16 @@ public class CardFactoryUtil {
}
return highest;
}
if (l[0].contains("RememberedSumPower")) {
CardList list = new CardList();
for (Object o : c.getRemembered()) {
if (o instanceof Card) {
list.add(AllZoneUtil.getCardState((Card) o));
}
}
return list.getTotalCreaturePower();
}
final String[] sq;
sq = l[0].split("\\.");