Merge branch 'patch' into 'master'

Fix an AI cheat when using ExceptSelf logic

See merge request core-developers/forge!1928
This commit is contained in:
swordshine
2019-06-30 14:58:18 +00:00

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());
} }