mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Better script for Daybreak Coronet
This commit is contained in:
@@ -5608,6 +5608,13 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else { // EnchantedBy Aura.Other
|
||||
for (final Card aura : this.getEnchantedBy()){
|
||||
if (aura.isValid(restriction, sourceController, source)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (property.startsWith("NotEnchantedBy")) {
|
||||
@@ -6388,6 +6395,10 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
if (!this.isEnchanted()) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("enchanted")) {
|
||||
if (!this.isEnchanted()) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("unenchanted")) {
|
||||
if (this.isEnchanted()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user