Made Mana#includesMana capable of comparing colorless to generic

This commit is contained in:
L_J 2018-04-28 13:17:25 +00:00 committed by GitHub
parent 34952f173d
commit 4446adfadf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1083,7 +1083,7 @@ public class Mana implements Comparable<Mana>, Serializable, Copyable<Mana> {
&& this.red >= mana.red
&& this.colorless >= mana.colorless
&& (this.generic >= mana.generic
|| this.countColored() >= mana.countColored() + mana.generic);
|| this.countColored() + this.colorless >= mana.count());
}