mirror of
https://github.com/correl/mage.git
synced 2025-04-12 17:00:08 -09:00
Refactor: Return true instead of !false (#9164)
This commit is contained in:
parent
0cc5317c2a
commit
2d2b7ae835
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue