mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Fix card display in multiple-zone selection list (eg Scavenging Ooze's ability).
This commit is contained in:
@@ -20,6 +20,7 @@ import com.google.common.base.Function;
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
import forge.FThreads;
|
||||
import forge.game.card.Card;
|
||||
import forge.game.card.CardView;
|
||||
import forge.game.card.CardView.CardStateView;
|
||||
import forge.item.InventoryItem;
|
||||
@@ -218,16 +219,16 @@ public class GuiChoose {
|
||||
card = ((CardStateView) sel).getCard();
|
||||
} else if (sel instanceof CardView) {
|
||||
card = (CardView) sel;
|
||||
} else if (sel instanceof Card) {
|
||||
card = CardView.get((Card) sel);
|
||||
} else {
|
||||
card = null;
|
||||
}
|
||||
if (card != null) {
|
||||
matchUI.setCard(card);
|
||||
|
||||
matchUI.setCard(card);
|
||||
matchUI.clearPanelSelections();
|
||||
matchUI.setPanelSelection(card);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user