mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Attempt to fix NPE when handling the Legendary rule and Planeswalker rule
This commit is contained in:
@@ -497,8 +497,9 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
if (node != this) {
|
||||
sb.append(" ");
|
||||
}
|
||||
|
||||
sb.append(node.getDescription().replace("CARDNAME", node.getHostCard().getName()));
|
||||
if (node.getHostCard() != null) {
|
||||
sb.append(node.getDescription().replace("CARDNAME", node.getHostCard().getName()));
|
||||
}
|
||||
node = node.getSubAbility();
|
||||
}
|
||||
return sb.toString();
|
||||
|
||||
Reference in New Issue
Block a user