mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58: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;
|
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;
|
||||||
|
|||||||
@@ -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>() {
|
||||||
|
|||||||
Reference in New Issue
Block a user