Added support for Count$ManaPool:Any

Added Glissa Sunseeker
This commit is contained in:
moomarc
2012-02-15 09:31:59 +00:00
parent 00aa6f24f0
commit cbed7adb97
3 changed files with 26 additions and 0 deletions

View File

@@ -2720,7 +2720,16 @@ public class CardFactoryUtil {
// Manapool
if (l[0].contains("ManaPool")) {
final String color = l[0].split(":")[1];
if (color.equals("All")) {
return (AllZone.getHumanPlayer().getManaPool().getAmountOfColor(Constant.Color.WHITE)
+ AllZone.getHumanPlayer().getManaPool().getAmountOfColor(Constant.Color.BLUE)
+ AllZone.getHumanPlayer().getManaPool().getAmountOfColor(Constant.Color.BLACK)
+ AllZone.getHumanPlayer().getManaPool().getAmountOfColor(Constant.Color.RED)
+ AllZone.getHumanPlayer().getManaPool().getAmountOfColor(Constant.Color.GREEN)
+ AllZone.getHumanPlayer().getManaPool().getAmountOfColor(Constant.Color.COLORLESS));
} else {
return AllZone.getHumanPlayer().getManaPool().getAmountOfColor(color);
}
}
// count valid cards on the battlefield