forked from External/mage
fixed Liliana Of The Veil npe when targeting tokens + added choose pile dialog
This commit is contained in:
parent
f14559d71d
commit
6205ebaeb9
18 changed files with 511 additions and 199 deletions
|
|
@ -110,6 +110,19 @@ public class GameSession extends GameWatcher {
|
|||
}
|
||||
}
|
||||
|
||||
public void choosePile(final String message, final CardsView pile1, final CardsView pile2) {
|
||||
if (!killed) {
|
||||
setupTimeout();
|
||||
User user = UserManager.getInstance().getUser(userId);
|
||||
if (user != null) {
|
||||
List<CardsView> piles = new ArrayList<CardsView>();
|
||||
piles.add(pile1);
|
||||
piles.add(pile2);
|
||||
user.fireCallback(new ClientCallback("gameChoosePile", game.getId(), new GameClientMessage(message, pile1, pile2)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void choose(final String message, final Set<String> choices) {
|
||||
if (!killed) {
|
||||
setupTimeout();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue