mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
AI: fixed computer's errors if all players quit the game;
This commit is contained in:
parent
d41ccd11bc
commit
c1db466d05
4 changed files with 16 additions and 4 deletions
|
|
@ -376,7 +376,7 @@ public final class SystemUtil {
|
|||
// 3. system commands
|
||||
if (runGroup.isSpecialCommand) {
|
||||
|
||||
Player opponent = game.getPlayer(game.getOpponents(feedbackPlayer.getId()).iterator().next());
|
||||
Player opponent = game.getPlayer(game.getOpponents(feedbackPlayer.getId()).stream().findFirst().orElse(null));
|
||||
|
||||
String info;
|
||||
switch (runGroup.name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue