mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
don't count decks and packs as having color or card type
This commit is contained in:
@@ -339,7 +339,7 @@ public final class CardRulesPredicates {
|
|||||||
@Override
|
@Override
|
||||||
public boolean apply(final CardRules subject) {
|
public boolean apply(final CardRules subject) {
|
||||||
if (null == subject) {
|
if (null == subject) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
switch (this.op) {
|
switch (this.op) {
|
||||||
case CountColors:
|
case CountColors:
|
||||||
@@ -417,7 +417,7 @@ public final class CardRulesPredicates {
|
|||||||
@Override
|
@Override
|
||||||
public boolean apply(final CardRules card) {
|
public boolean apply(final CardRules card) {
|
||||||
if (null == card) {
|
if (null == card) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
return this.shouldBeEqual == card.getType().typeContains(this.operand);
|
return this.shouldBeEqual == card.getType().typeContains(this.operand);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user