* Non creature tokens - fixed rollback errors in AI games (example: Food token, see #6331);

Fixed other potentially NPE errors with rarity;
This commit is contained in:
Oleg Agafonov 2020-03-06 03:27:46 +04:00
parent 1b60dfc258
commit cb8d4dc340
12 changed files with 88 additions and 70 deletions

View file

@ -750,7 +750,7 @@ public abstract class CardPanel extends MagePermanent implements MouseListener,
if (card.getExpansionSetCode() != null && !card.getExpansionSetCode().isEmpty()) {
sb.append('\n').append(card.getCardNumber()).append(" - ");
sb.append(card.getExpansionSetCode()).append(" - ");
sb.append(card.getRarity().toString());
sb.append(card.getRarity() == null ? "none" : card.getRarity().toString());
}
}
return sb.toString();