mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 04:39:18 -08:00
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
|
|
@ -674,7 +674,17 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
|
|||
return modes.getMode();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public boolean choosePile(Outcome outcome, String message, List<? extends Card> pile1, List<? extends Card> pile2, Game game) {
|
||||
game.getState().setPriorityPlayerId(getId());
|
||||
game.fireChoosePileEvent(playerId, message, pile1, pile2);
|
||||
waitForBooleanResponse();
|
||||
if (!abort)
|
||||
return response.getBoolean();
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setResponseString(String responseString) {
|
||||
synchronized(response) {
|
||||
response.setString(responseString);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue