- 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:
Agetian
2013-05-25 06:09:20 +00:00
parent c9235e8fc7
commit 34522bd0bb

View File

@@ -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);
} }