mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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) {
|
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user