mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
improvements for alternate state cards in editors (desktop)
This commit is contained in:
committed by
Michael Kamensky
parent
fcbafef37f
commit
cb6d39231d
@@ -350,7 +350,11 @@ public final class CardRulesPredicates {
|
||||
boolean shouldContain;
|
||||
switch (this.field) {
|
||||
case NAME:
|
||||
return op(card.getName(), this.operand);
|
||||
boolean otherName = false;
|
||||
if (card.getOtherPart() != null) {
|
||||
otherName = op(card.getOtherPart().getName(), this.operand);
|
||||
}
|
||||
return otherName || op(card.getName(), this.operand);
|
||||
case SUBTYPE:
|
||||
shouldContain = (this.getOperator() == StringOp.CONTAINS) || (this.getOperator() == StringOp.EQUALS);
|
||||
return shouldContain == card.getType().hasSubtype(this.operand);
|
||||
|
||||
Reference in New Issue
Block a user