mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Temporary crash prevention measure for manifested split cards (until the problem with the view of such cards can be figured out)
This commit is contained in:
@@ -372,11 +372,13 @@ public class CardPanel extends SkinnedPanel implements CardContainer, IDisposabl
|
||||
if (!showSplitMana) {
|
||||
drawManaCost(g, card.getCurrentState().getManaCost(), 0);
|
||||
} else {
|
||||
PaperCard pc = StaticData.instance().getCommonCards().getCard(card.getName());
|
||||
int ofs = pc != null && Card.getCardForUi(pc).hasKeyword("Aftermath") ? -12 : 12;
|
||||
if (!card.getName().isEmpty()) { // FIXME: temporary crash prevention measure for face-down (manifested) split cards
|
||||
PaperCard pc = StaticData.instance().getCommonCards().getCard(card.getName());
|
||||
int ofs = pc != null && Card.getCardForUi(pc).hasKeyword("Aftermath") ? -12 : 12;
|
||||
|
||||
drawManaCost(g, card.getCurrentState().getManaCost(), ofs);
|
||||
drawManaCost(g, card.getAlternateState().getManaCost(), -ofs);
|
||||
drawManaCost(g, card.getCurrentState().getManaCost(), ofs);
|
||||
drawManaCost(g, card.getAlternateState().getManaCost(), -ofs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user