- Added the property "AttachedTo XXX" to hasProperty.

- Added Savaen Elves.
This commit is contained in:
Sloth
2011-11-03 18:49:59 +00:00
parent 3bf9e807f2
commit ae9f7ec664
6 changed files with 37 additions and 14 deletions

View File

@@ -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;