mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Exile dialog - Fixed that cards from exile windows with mixed owners were not all shown in exile dialog.
This commit is contained in:
parent
1e225cdf78
commit
0d5326683c
1 changed files with 3 additions and 4 deletions
|
@ -85,12 +85,11 @@ public class PlayerView implements Serializable {
|
||||||
}
|
}
|
||||||
for (ExileZone exileZone : game.getExile().getExileZones()) {
|
for (ExileZone exileZone : game.getExile().getExileZones()) {
|
||||||
for (Card card : exileZone.getCards(game)) {
|
for (Card card : exileZone.getCards(game)) {
|
||||||
if (!player.getId().equals(card.getOwnerId())) {
|
if (player.getId().equals(card.getOwnerId())) {
|
||||||
break;
|
|
||||||
}
|
|
||||||
exile.put(card.getId(), new CardView(card));
|
exile.put(card.getId(), new CardView(card));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
for (Permanent permanent: state.getBattlefield().getAllPermanents()) {
|
for (Permanent permanent: state.getBattlefield().getAllPermanents()) {
|
||||||
if (showInBattlefield(permanent, state)) {
|
if (showInBattlefield(permanent, state)) {
|
||||||
PermanentView view = new PermanentView(permanent, game.getCard(permanent.getId()), createdForPlayerId, game);
|
PermanentView view = new PermanentView(permanent, game.getCard(permanent.getId()), createdForPlayerId, game);
|
||||||
|
|
Loading…
Reference in a new issue