mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Added Sword of the Ages
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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("\\.");
|
||||
|
||||
Reference in New Issue
Block a user