mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
other: fixed miss null checks in frame style usage (close #13662)
This commit is contained in:
parent
1f75b36898
commit
11dcc18049
2 changed files with 4 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ public class CardPanelRenderModeMTGO extends CardPanel {
|
|||
sb.append((char) (this.view.isCanAttack() ? 1 : 0));
|
||||
sb.append((char) (this.view.isCanBlock() ? 1 : 0));
|
||||
sb.append((char) (this.view.isFaceDown() ? 1 : 0));
|
||||
sb.append((char) this.view.getFrameStyle().ordinal());
|
||||
sb.append((char) (this.view.getFrameStyle() != null ? this.view.getFrameStyle().ordinal() : -1));
|
||||
if (this.view instanceof PermanentView) {
|
||||
sb.append((char) (((PermanentView) this.view).hasSummoningSickness() ? 1 : 0));
|
||||
sb.append((char) (((PermanentView) this.view).getDamage()));
|
||||
|
|
|
|||
|
|
@ -167,7 +167,9 @@ public class CardInfo {
|
|||
this.modalDoubleFacedSecondSideName = ((ModalDoubleFacedCard) card).getRightHalfCard().getName();
|
||||
}
|
||||
|
||||
if (card.getFrameStyle() != null) {
|
||||
this.frameStyle = card.getFrameStyle().toString();
|
||||
}
|
||||
this.frameColor = card.getFrameColor(null).toString();
|
||||
this.variousArt = card.getUsesVariousArt();
|
||||
this.blue = card.getColor(null).isBlue();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue