mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed NPE for picking order of triggered abilities.
This commit is contained in:
parent
1d5f7e4467
commit
034f71cead
1 changed files with 1 additions and 1 deletions
|
@ -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>");
|
||||||
|
|
Loading…
Reference in a new issue