mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Fixed a typo in isValid
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user