mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fixed a NPE when planeswalking to Interplanar Tunnel in Planechase mode (also affects other corner cases when picking from an exotic game zone with no defined icon).
This commit is contained in:
@@ -492,7 +492,8 @@ public class MatchController extends AbstractGuiGame {
|
|||||||
|
|
||||||
final Collection<CardView> revealList = delayedReveal.getCards();
|
final Collection<CardView> revealList = delayedReveal.getCards();
|
||||||
final String revealListCaption = StringUtils.capitalize(MessageUtil.formatMessage("{player's} " + delayedReveal.getZone().name(), delayedReveal.getOwner(), delayedReveal.getOwner()));
|
final String revealListCaption = StringUtils.capitalize(MessageUtil.formatMessage("{player's} " + delayedReveal.getZone().name(), delayedReveal.getOwner(), delayedReveal.getOwner()));
|
||||||
final FImage revealListImage = MatchController.getView().getPlayerPanels().values().iterator().next().getZoneTab(delayedReveal.getZone()).getIcon();
|
final InfoTab revealListTab = MatchController.getView().getPlayerPanels().values().iterator().next().getZoneTab(delayedReveal.getZone());
|
||||||
|
final FImage revealListImage = revealListTab != null ? revealListTab.getIcon() : null;
|
||||||
|
|
||||||
//use special dialog for choosing card and offering ability to see all revealed cards at the same time
|
//use special dialog for choosing card and offering ability to see all revealed cards at the same time
|
||||||
return new WaitCallback<GameEntityView>() {
|
return new WaitCallback<GameEntityView>() {
|
||||||
|
|||||||
Reference in New Issue
Block a user