mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Small fix for RememberedPlayerCtrl restriction.
This commit is contained in:
@@ -6766,11 +6766,23 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
} else { // source not enchanting a player
|
||||
return false;
|
||||
}
|
||||
} else if (property.equals("RememberedPlayerCtrl")) {
|
||||
final Object o = source.getRemembered();
|
||||
if (o instanceof Player) {
|
||||
if (!this.getController().isPlayer((Player) o)) {
|
||||
return false;
|
||||
} else if (property.startsWith("RememberedPlayerCtrl")) {
|
||||
if (source.getRemembered().isEmpty()) {
|
||||
final Card newCard = AllZoneUtil.getCardState(source);
|
||||
for (final Object o : newCard.getRemembered()) {
|
||||
if (o instanceof Player) {
|
||||
if (!this.getController().isPlayer((Player) o)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (final Object o : source.getRemembered()) {
|
||||
if (o instanceof Player) {
|
||||
if (!this.getController().isPlayer((Player) o)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (property.startsWith("YouOwn")) {
|
||||
|
||||
Reference in New Issue
Block a user