spjspj - containsAny is meant to be for coloured mana

This commit is contained in:
spjspj 2016-04-19 12:52:20 +10:00
parent c885f212d3
commit 473cdd0c17

View file

@ -816,11 +816,11 @@ public class Mana implements Comparable<Mana>, Serializable, Copyable<Mana> {
} }
/** /**
* Returns if this objects mana contains any mana the same as the passed in * Returns if this objects mana contains any coloured mana the same as the passed in
* {@link Mana}'s mana. * {@link Mana}'s mana.
* *
* @param mana the mana to check for * @param mana the mana to check for
* @return true if this contains any of the same type of mana that this has * @return true if this contains any of the same type of coloured mana that this has
*/ */
public boolean containsAny(final Mana mana) { public boolean containsAny(final Mana mana) {
if (mana.black > 0 && this.black > 0) { if (mana.black > 0 && this.black > 0) {
@ -833,8 +833,6 @@ public class Mana implements Comparable<Mana>, Serializable, Copyable<Mana> {
return true; return true;
} else if (mana.green > 0 && this.green > 0) { } else if (mana.green > 0 && this.green > 0) {
return true; return true;
} else if (mana.colorless > 0 && this.colorless > 0) {
return true;
} }
return false; return false;