mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 11:02:00 -08:00
Fixed NPE error in card icons
This commit is contained in:
parent
1d443b231c
commit
dc09f279ed
2 changed files with 61 additions and 0 deletions
|
|
@ -453,6 +453,7 @@ public class CardView extends SimpleCardView {
|
|||
// x cost
|
||||
Zone cardZone = game.getState().getZone(card.getId());
|
||||
if (card.getManaCost().containsX()
|
||||
&& card.getSpellAbility() != null
|
||||
&& (cardZone.match(Zone.BATTLEFIELD) || cardZone.match(Zone.STACK))) {
|
||||
int costX;
|
||||
if (card instanceof Permanent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue