Fix so revealing a collection of cards doesn't display them all in one row

This commit is contained in:
drdev
2014-10-12 15:49:19 +00:00
parent c7b8a070f8
commit 91a714384a

View File

@@ -561,7 +561,7 @@ public class PlayerControllerHuman extends PlayerController {
String fm = MessageUtil.formatMessage(message, player, owner); String fm = MessageUtil.formatMessage(message, player, owner);
if (!cards.isEmpty()) { if (!cards.isEmpty()) {
tempShowCards(cards); tempShowCards(cards);
SGuiChoose.reveal(fm, cards); SGuiChoose.reveal(fm, CardView.getCollection(cards));
endTempShowCards(); endTempShowCards();
} }
else { else {
@@ -733,7 +733,7 @@ public class PlayerControllerHuman extends PlayerController {
}; };
target.setMessage("Select %d card(s) to discard, unless you discard a " + uType + "."); target.setMessage("Select %d card(s) to discard, unless you discard a " + uType + ".");
target.showAndWait(); target.showAndWait();
return (CardCollectionView)target.getSelected(); return new CardCollection(target.getSelected());
} }
/* (non-Javadoc) /* (non-Javadoc)