forked from External/mage
*Draft - Non hidden picked cards go to the deck. Hidden cards to sideboard.
This commit is contained in:
parent
b0238b402e
commit
c22b54d262
13 changed files with 53 additions and 22 deletions
|
|
@ -29,6 +29,7 @@
|
|||
package mage.server.draft;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.ScheduledFuture;
|
||||
|
|
@ -150,9 +151,9 @@ public class DraftSession {
|
|||
killed = true;
|
||||
}
|
||||
|
||||
public DraftPickView sendCardPick(UUID cardId) {
|
||||
public DraftPickView sendCardPick(UUID cardId, Set<UUID> hiddenCards) {
|
||||
cancelTimeout();
|
||||
if (draft.addPick(playerId, cardId)) {
|
||||
if (draft.addPick(playerId, cardId, hiddenCards)) {
|
||||
return getDraftPickView(0);
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue