mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Avoid trying to generate a move option for cards that don't have a valid destination
This commit is contained in:
@@ -1793,7 +1793,7 @@ public class FDeckEditor extends TabPageScreen<FDeckEditor> {
|
||||
DeckSection destination = DeckSection.matchingSection(card);
|
||||
final DeckSectionPage destinationPage = parentScreen.getPageForSection(destination);
|
||||
|
||||
if (!needsCommander() && !canOnlyBePartnerCommander(card)) {
|
||||
if (!needsCommander() && !canOnlyBePartnerCommander(card) && destinationPage != null) {
|
||||
addMoveCardMenuItem(menu, card, this, destinationPage);
|
||||
if (canSideboard(card) && destination != DeckSection.Sideboard) {
|
||||
addMoveCardMenuItem(menu, card, this, parentScreen.getSideboardPage());
|
||||
|
||||
Reference in New Issue
Block a user