mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Identifier are shown for Looked at and revealed cards view
This commit is contained in:
parent
cb666a87ca
commit
bafd27f5b3
20 changed files with 58 additions and 56 deletions
|
|
@ -237,7 +237,7 @@ public class GameSessionPlayer extends GameSessionWatcher {
|
|||
Map<String, SimpleCardsView> handCards = new HashMap<>();
|
||||
for (UUID controlledPlayerId : player.getPlayersUnderYourControl()) {
|
||||
Player opponent = game.getPlayer(controlledPlayerId);
|
||||
handCards.put(opponent.getName(), new SimpleCardsView(opponent.getHand().getCards(game)));
|
||||
handCards.put(opponent.getName(), new SimpleCardsView(opponent.getHand().getCards(game), true));
|
||||
}
|
||||
gameView.setOpponentHands(handCards);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ public class GameSessionWatcher {
|
|||
Map<String, SimpleCardsView> handCards = new HashMap<>();
|
||||
for (Player player: game.getPlayers().values()) {
|
||||
if (player.hasUserPermissionToSeeHand(userId)) {
|
||||
handCards.put(player.getName(), new SimpleCardsView(player.getHand().getCards(game)));
|
||||
handCards.put(player.getName(), new SimpleCardsView(player.getHand().getCards(game), true));
|
||||
gameView.setWatchedHands(handCards);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue