mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
spjspj - containsAny is meant to be for coloured mana
This commit is contained in:
parent
c885f212d3
commit
473cdd0c17
1 changed files with 3 additions and 5 deletions
|
@ -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.
|
||||
*
|
||||
* @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) {
|
||||
if (mana.black > 0 && this.black > 0) {
|
||||
|
@ -833,8 +833,6 @@ public class Mana implements Comparable<Mana>, Serializable, Copyable<Mana> {
|
|||
return true;
|
||||
} else if (mana.green > 0 && this.green > 0) {
|
||||
return true;
|
||||
} else if (mana.colorless > 0 && this.colorless > 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue