mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
* Changed logging level back to info, changed level of a lot of messages to debug from info. Added check that certain AI players can't join a table with no appropriate format.
This commit is contained in:
parent
7a4469fd80
commit
d34779fa68
26 changed files with 146 additions and 69 deletions
|
|
@ -30,6 +30,8 @@ package mage.player.ai;
|
|||
|
||||
import mage.constants.RangeOfInfluence;
|
||||
import mage.game.Game;
|
||||
import mage.game.Table;
|
||||
import mage.game.tournament.TournamentType;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
|
|
@ -65,4 +67,15 @@ public class ComputerDraftPlayer extends ComputerPlayer<ComputerDraftPlayer> imp
|
|||
game.concede(playerId);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canJoinTable(Table table) {
|
||||
if (table.isTournament()) {
|
||||
TournamentType tournamentType = table.getTournament().getTournamentType();
|
||||
if(tournamentType != null && tournamentType.isDraft()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue