mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-12 16:58:57 +00:00
Fix commander adventure mode crash in limited event. When putting card from sideboard, isCommanderEditor returned true, even though game is in limited mode. Accessing the command zone then led to nullptr. (#9064)
This commit is contained in:
@@ -128,6 +128,8 @@ public class AdventureDeckEditor extends FDeckEditor {
|
||||
|
||||
@Override
|
||||
public boolean isCommanderEditor() {
|
||||
if (isLimitedEditor())
|
||||
return false;
|
||||
if (AdventurePlayer.current().getAdventureMode() == AdventureModes.Commander)
|
||||
return true;
|
||||
return super.isCommanderEditor();
|
||||
|
||||
Reference in New Issue
Block a user