forked from External/mage
* Fixed a bug of colorless mana (e.g. caused Heartbeat of Spring not working with Urza's lands).
This commit is contained in:
parent
bf934137e8
commit
f54c675c4b
15 changed files with 203 additions and 97 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue