mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- 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:
@@ -271,7 +271,7 @@ public class CardDetailUtil {
|
||||
if (origPaperCard != null) {
|
||||
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) {
|
||||
System.err.println("Unexpected behavior: card " + card.getName() + "[" + card.getId() + "] tripped an exception when trying to process current card colors.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user