mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Didn't fix the NPE properly last time
This commit is contained in:
@@ -282,11 +282,11 @@ public class Spell_Permanent extends Spell {
|
|||||||
|
|
||||||
// Maybe better considerations
|
// Maybe better considerations
|
||||||
AbilityFactory af = new AbilityFactory();
|
AbilityFactory af = new AbilityFactory();
|
||||||
String execute = card.getSVar(params.get("Execute"));
|
String execute = params.get("Execute");
|
||||||
if (execute == null) {
|
if (execute == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
SpellAbility exSA = af.getAbility(execute, card);
|
SpellAbility exSA = af.getAbility(card.getSVar(execute), card);
|
||||||
|
|
||||||
if (api != null && !af.getAPI().equals(api))
|
if (api != null && !af.getAPI().equals(api))
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user