mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
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:
parent
e8342e1f11
commit
6ad2cdaa78
5 changed files with 38 additions and 55 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue