mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Fixes to Count:ManaPool:All
This commit is contained in:
@@ -2721,14 +2721,9 @@ public class CardFactoryUtil {
|
|||||||
if (l[0].contains("ManaPool")) {
|
if (l[0].contains("ManaPool")) {
|
||||||
final String color = l[0].split(":")[1];
|
final String color = l[0].split(":")[1];
|
||||||
if (color.equals("All")) {
|
if (color.equals("All")) {
|
||||||
return (AllZone.getHumanPlayer().getManaPool().getAmountOfColor(Constant.Color.WHITE)
|
return c.getController().getManaPool().totalMana();
|
||||||
+ 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 {
|
} else {
|
||||||
return AllZone.getHumanPlayer().getManaPool().getAmountOfColor(color);
|
return c.getController().getManaPool().getAmountOfColor(color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user