* Exile dialog - Fixed that cards from exile windows with mixed owners were not all shown in exile dialog.

This commit is contained in:
LevelX2 2014-10-11 00:36:38 +02:00
parent 1e225cdf78
commit 0d5326683c

View file

@ -85,12 +85,11 @@ public class PlayerView implements Serializable {
}
for (ExileZone exileZone : game.getExile().getExileZones()) {
for (Card card : exileZone.getCards(game)) {
if (!player.getId().equals(card.getOwnerId())) {
break;
}
if (player.getId().equals(card.getOwnerId())) {
exile.put(card.getId(), new CardView(card));
}
}
}
for (Permanent permanent: state.getBattlefield().getAllPermanents()) {
if (showInBattlefield(permanent, state)) {
PermanentView view = new PermanentView(permanent, game.getCard(permanent.getId()), createdForPlayerId, game);