mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fix a bug with the deck editors crashing when trying determine if a card can be shown to a player (please review, not sure if this is the optimal/preferred solution).
This commit is contained in:
@@ -298,6 +298,10 @@ public enum FControl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean mayShowCard(Card c) {
|
public boolean mayShowCard(Card c) {
|
||||||
|
if (match == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
Player p = match.getCurrentGame().getPhaseHandler().getPriorityPlayer();
|
Player p = match.getCurrentGame().getPhaseHandler().getPriorityPlayer();
|
||||||
return c.canBeShownTo(p);
|
return c.canBeShownTo(p);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user