mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add access to the current set code in Card.hasProperty() in the form setXXX. So a valid expression for all Arabian Nights permanents is: Permanent.setARN
This commit is contained in:
@@ -7197,7 +7197,13 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
if (realZone == this.getCastFrom()) {
|
if (realZone == this.getCastFrom()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (property.startsWith("set")) {
|
||||||
|
final String setCode = property.substring(3, 6);
|
||||||
|
if (!this.getCurSetCode().equals(setCode)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (property.equals("ChosenType")) {
|
if (property.equals("ChosenType")) {
|
||||||
if (!this.isType(source.getChosenType())) {
|
if (!this.isType(source.getChosenType())) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user