* Fixed a problem with the new faceDown state of cards handled in the game State.

This commit is contained in:
LevelX2 2015-03-13 14:55:02 +01:00
parent 8b2a428cb1
commit 3d46dcc2b9

View file

@ -141,7 +141,7 @@ public class CardView extends SimpleCardView {
super(card.getId(), card.getExpansionSetCode(), card.getCardNumber(), card.getUsesVariousArt(), card.getTokenSetCode());
// no information available for face down cards as long it's not a controlled face down morph card
// TODO: Better handle this in Framework (but currently I'm not sure how to do it there) LevelX2
if (card.isFaceDown(game)) {
if (game != null && card.isFaceDown(game)) {
this.fillEmpty(card, controlled);
if (card instanceof Spell) {
// special handling for casting of Morph cards