mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Fix an AI cheat when using ExceptSelf logic
This commit is contained in:
@@ -797,7 +797,7 @@ public class ComputerUtil {
|
||||
|
||||
final int max = Math.min(remaining.size(), amount);
|
||||
|
||||
if (exceptSelf) {
|
||||
if (exceptSelf && max < remaining.size()) {
|
||||
removedSelf = remaining.remove(source.getHostCard());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user