- Fixed a typo in isValid

This commit is contained in:
moomarc
2013-02-13 05:20:13 +00:00
parent c4899cae38
commit 12f806a26e
2 changed files with 5 additions and 4 deletions

View File

@@ -6791,7 +6791,7 @@ public class Card extends GameEntity implements Comparable<Card> {
return false;
}
}
} else if (property.startsWith("shareControllerWith")) {
} else if (property.startsWith("sharesControllerWith")) {
if (property.equals("sharesControllerWith")) {
if (!this.sharesControllerWith(source)) {
return false;

View File

@@ -286,15 +286,16 @@ public class TargetSelection {
choices.remove(c);
}
}
// If all cards (including subability targets) must have the same controller
if (tgt.isSameController() && !objects.isEmpty()) {
final List<Card> list = new ArrayList<Card>();
for (final Object o : objects)
for (final Object o : objects) {
if (o instanceof Card) {
list.add((Card) o);
}
if (!list.isEmpty()){
}
if (!list.isEmpty()) {
final Card card = list.get(0);
choices = CardLists.filter(choices, new Predicate<Card>() {
@Override