mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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
|
||||
AbilityFactory af = new AbilityFactory();
|
||||
String execute = card.getSVar(params.get("Execute"));
|
||||
String execute = params.get("Execute");
|
||||
if (execute == null) {
|
||||
continue;
|
||||
}
|
||||
SpellAbility exSA = af.getAbility(execute, card);
|
||||
SpellAbility exSA = af.getAbility(card.getSVar(execute), card);
|
||||
|
||||
if (api != null && !af.getAPI().equals(api))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user