mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
fixes NPE at getCmc
This commit is contained in:
@@ -9195,7 +9195,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
|
|
||||||
int requestedCMC = 0;
|
int requestedCMC = 0;
|
||||||
|
|
||||||
if (getRules().getSplitType() == CardSplitType.Split) {
|
if (getRules() != null && getRules().getSplitType() == CardSplitType.Split) {
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
case CurrentSideCMC:
|
case CurrentSideCMC:
|
||||||
// TODO: test if this returns combined CMC for the full face (then get rid of CombinedCMC mode?)
|
// TODO: test if this returns combined CMC for the full face (then get rid of CombinedCMC mode?)
|
||||||
|
|||||||
Reference in New Issue
Block a user