mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Prevent that the tournament sub tables are deleted by expire check (delete logik must be added).
This commit is contained in:
parent
f1ce18cccf
commit
ded726d2ef
3 changed files with 12 additions and 3 deletions
|
|
@ -319,8 +319,8 @@ public class TableManager {
|
|||
if (player != null && player.isHuman()) {
|
||||
canBeRemoved = false;
|
||||
}
|
||||
/* temporarily fix for issue #262 */
|
||||
if(table.getGameType().equals("Two Player Duel")){
|
||||
// tournament sub tables may not be removed, will be done by the tournament itself
|
||||
if(table.isTournamentSubTable()){
|
||||
canBeRemoved = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -196,6 +196,7 @@ public class TournamentController {
|
|||
try {
|
||||
TableManager tableManager = TableManager.getInstance();
|
||||
Table table = tableManager.createTable(GamesRoomManager.getInstance().getMainRoomId(), matchOptions);
|
||||
table.setTournamentSubTable(true);
|
||||
TournamentPlayer player1 = pair.getPlayer1();
|
||||
TournamentPlayer player2 = pair.getPlayer2();
|
||||
tableManager.addPlayer(getPlayerSessionId(player1.getPlayer().getId()), table.getId(), player1.getPlayer(), player1.getPlayerType(), player1.getDeck());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue