diff --git a/src/main/java/forge/card/cardfactory/CardFactoryUtil.java b/src/main/java/forge/card/cardfactory/CardFactoryUtil.java index 6cd41ef9a5d..540e98a5653 100644 --- a/src/main/java/forge/card/cardfactory/CardFactoryUtil.java +++ b/src/main/java/forge/card/cardfactory/CardFactoryUtil.java @@ -2721,14 +2721,9 @@ public class CardFactoryUtil { 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)); + return c.getController().getManaPool().totalMana(); } else { - return AllZone.getHumanPlayer().getManaPool().getAmountOfColor(color); + return c.getController().getManaPool().getAmountOfColor(color); } }