mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- NPE prevention when trying to add KW Alternative Cost to a card with no spell abilities (e.g. a Vanguard avatar).
This commit is contained in:
@@ -3561,6 +3561,9 @@ public class CardFactoryUtil {
|
||||
final String[] kw = keyword.split(":");
|
||||
String costStr = kw[1];
|
||||
final SpellAbility sa = card.getFirstSpellAbility();
|
||||
if (sa == null) {
|
||||
return;
|
||||
}
|
||||
final SpellAbility newSA = sa.copy();
|
||||
newSA.setBasicSpell(false);
|
||||
if (costStr.equals("ConvertedManaCost")) {
|
||||
|
||||
Reference in New Issue
Block a user