mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Implemented "HasNoSubtype" property that allows e.g. to limit the type of Landfall (for example, ValidCard$ Land.YouCtrl+HasNoSubtype Plains). Could be useful for BFZ.
This commit is contained in:
@@ -5197,6 +5197,11 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
if (!getType().hasSubtype(subType)) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("HasNoSubtype")) {
|
||||
final String subType = property.substring(13);
|
||||
if (getType().hasSubtype(subType)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!getType().hasStringType(property)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user