Fix an AI cheat when using ExceptSelf logic

This commit is contained in:
swordshine
2019-06-30 22:56:12 +08:00
parent 94b22b2e9c
commit a2332addae

View File

@@ -797,7 +797,7 @@ public class ComputerUtil {
final int max = Math.min(remaining.size(), amount); final int max = Math.min(remaining.size(), amount);
if (exceptSelf) { if (exceptSelf && max < remaining.size()) {
removedSelf = remaining.remove(source.getHostCard()); removedSelf = remaining.remove(source.getHostCard());
} }