* Fixed a bug of colorless mana (e.g. caused Heartbeat of Spring not working with Urza's lands).

This commit is contained in:
LevelX2 2016-02-16 17:15:47 +01:00
parent bf934137e8
commit f54c675c4b
15 changed files with 203 additions and 97 deletions

View file

@ -347,14 +347,17 @@ public class Mana implements Comparable<Mana>, Serializable, Copyable<Mana> {
if (black > 0) {
black--;
generic++;
continue;
}
if (colorless > 0) {
colorless--;
generic++;
continue;
}
if (any > 0) {
any--;
generic++;
continue;
}
if (oldColorless == generic) {
throw new ArithmeticException("Not enough mana to pay colorless");