- Improved getCurrentColors (no longer wrongly shows the current card colors for face-down Morph creatures controlled by the human player).

This commit is contained in:
Agetian
2015-06-16 14:24:45 +00:00
parent f92741282f
commit 2cdcf7263b

View File

@@ -271,7 +271,7 @@ public class CardDetailUtil {
if (origPaperCard != null) { if (origPaperCard != null) {
origCard = Card.getCardForUi(origPaperCard); // if null, probably a variant card origCard = Card.getCardForUi(origPaperCard); // if null, probably a variant card
} }
origIdent = origCard != null ? getCurrentColors(CardView.get(origCard).getCurrentState()) : ""; origIdent = origCard != null ? getCurrentColors(origCard.isFaceDown() ? CardView.get(origCard).getState(false) : CardView.get(origCard).getCurrentState()) : "";
} catch(Exception ex) { } catch(Exception ex) {
System.err.println("Unexpected behavior: card " + card.getName() + "[" + card.getId() + "] tripped an exception when trying to process current card colors."); System.err.println("Unexpected behavior: card " + card.getName() + "[" + card.getId() + "] tripped an exception when trying to process current card colors.");
} }