totalMana will count colorless mana too

This commit is contained in:
Maxmtg
2013-05-23 09:57:43 +00:00
parent 0be7e292ad
commit bb7131b65f

View File

@@ -294,8 +294,8 @@ public class ManaPool {
*/ */
public final int totalMana() { public final int totalMana() {
int total = 0; int total = 0;
for (byte i : MagicColor.WUBRG) { for (Collection<Mana> cm : floatingMana.values()) {
total += this.getAmountOfColor(i); total += cm.size();
} }
return total; return total;
} }