- Attempt to fix NPE when handling the Legendary rule and Planeswalker rule

This commit is contained in:
swordshine
2014-10-11 04:32:00 +00:00
parent ce0266c3d5
commit 351f0df19a

View File

@@ -497,8 +497,9 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
if (node != this) { if (node != this) {
sb.append(" "); sb.append(" ");
} }
if (node.getHostCard() != null) {
sb.append(node.getDescription().replace("CARDNAME", node.getHostCard().getName())); sb.append(node.getDescription().replace("CARDNAME", node.getHostCard().getName()));
}
node = node.getSubAbility(); node = node.getSubAbility();
} }
return sb.toString(); return sb.toString();