Merge fix

This commit is contained in:
Oleg Agafonov 2021-08-21 17:55:44 +04:00
parent a76a006065
commit 14838e670a

View file

@ -613,8 +613,6 @@ public class ComputerPlayer extends PlayerImpl implements Player {
FilterPermanent filter = null;
if (target.getOriginalTarget().getFilter() instanceof FilterPermanent) {
filter = (FilterPermanent) target.getOriginalTarget().getFilter();
} else if (target.getOriginalTarget().getFilter() instanceof FilterPermanentOrSuspendedCard) {
filter = ((FilterPermanentOrSuspendedCard) target.getOriginalTarget().getFilter()).getPermanentFilter();
}
if (filter == null) {
throw new IllegalStateException("Unsupported permanent filter in computer's chooseTarget method: "