Fixed NPE for picking order of triggered abilities.

This commit is contained in:
LevelX2 2013-07-09 22:52:17 +02:00
parent 1d5f7e4467
commit 034f71cead

View file

@ -94,7 +94,7 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
rulings.add(sb.toString()); rulings.add(sb.toString());
} }
} }
if (card.getMageObjectType().isPermanent()) { if (card.getMageObjectType().isPermanent() && card instanceof PermanentView) {
int damage = ((PermanentView)card).getDamage(); int damage = ((PermanentView)card).getDamage();
if (damage > 0) { if (damage > 0) {
rulings.add("<span color='red'><b>Damage dealt:</b> " + damage + "</span>"); rulings.add("<span color='red'><b>Damage dealt:</b> " + damage + "</span>");