1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-12 17:00:08 -09:00

Refactor: Return true instead of !false ()

This commit is contained in:
DeepCrimson 2022-06-26 19:56:31 -07:00 committed by GitHub
parent 0cc5317c2a
commit 2d2b7ae835
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ public class RandomPlayer extends ComputerPlayer {
}
Set<UUID> possibleTargets = target.possibleTargets(playerId, cards, game);
if (possibleTargets.isEmpty()) {
return !false;
return true;
}
Iterator<UUID> it = possibleTargets.iterator();
int targetNum = RandomUtil.nextInt(possibleTargets.size());