forked from External/mage
* Fixed a bug that you can't create tournaments with AI players (Showing the "You can join a table only one time." message).
This commit is contained in:
parent
f5d0971129
commit
0115052b81
4 changed files with 8 additions and 10 deletions
|
|
@ -160,7 +160,7 @@ public class TableController {
|
|||
logger.fatal(new StringBuilder("couldn't get user ").append(name).append(" for join tornament userId = ").append(userId).toString());
|
||||
return false;
|
||||
}
|
||||
if (userPlayerMap.containsKey(userId)){
|
||||
if (userPlayerMap.containsKey(userId) && playerType.equals("Human")){
|
||||
user.showUserMessage("Join Table", new StringBuilder("You can join a table only one time.").toString());
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue