AI: improved stability:

- fixed game errors with source related filters (related to #13713);
- fixed game freeze in hand's cards selection (related to #13290);
- fixed game freeze in target amount selection with X=0 (related to #13290);
This commit is contained in:
Oleg Agafonov 2025-06-14 16:03:44 +04:00
parent e8342e1f11
commit 6ad2cdaa78
5 changed files with 38 additions and 55 deletions

View file

@ -209,7 +209,7 @@ class OublietteTarget extends TargetSacrifice {
@Override
public Set<UUID> possibleTargets(UUID sourceControllerId, Ability source, Game game) {
Set<UUID> possibleTargets = super.possibleTargets(sourceControllerId, source, game);
possibleTargets.removeIf(uuid -> !this.canTarget(sourceControllerId, uuid, null, game));
possibleTargets.removeIf(uuid -> !this.canTarget(sourceControllerId, uuid, source, game));
return possibleTargets;
}