- 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; return false;
} }
} }
} else if (property.startsWith("shareControllerWith")) { } else if (property.startsWith("sharesControllerWith")) {
if (property.equals("sharesControllerWith")) { if (property.equals("sharesControllerWith")) {
if (!this.sharesControllerWith(source)) { if (!this.sharesControllerWith(source)) {
return false; return false;

View File

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