mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added the property "AttachedTo XXX" to hasProperty.
- Added Savaen Elves.
This commit is contained in:
@@ -6442,10 +6442,15 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
if (!equippedBy.contains(source) && !getEnchantedBy().contains(source)) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("Attached")) {
|
||||
} else if (property.equals("Attached")) {
|
||||
if (!equipping.contains(source) && !source.equals(enchanting)) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("AttachedTo")) {
|
||||
String restriction = property.split("AttachedTo ")[1];
|
||||
if (enchanting == null || !enchanting.isValid(restriction, sourceController, source)) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("EnchantedBy")) {
|
||||
if (!getEnchantedBy().contains(source)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user