mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
totalMana will count colorless mana too
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user