public boolean shouldActivate(Duel duel, Duelist duelist) {
		if(!this.hasEffect()) return false;
		try {
			PluginVars.engine.eval(new FileReader(this.effectFile));
			try {
				Object ret = PluginVars.engineinv.invokeFunction("shouldActivate", duel, duelist);
				if(Boolean.class.isInstance(ret)) {
					Boolean retval = Boolean.class.cast(ret);
					//System.out.println("Return is " + retval);
					return retval;
				}
			} catch (NoSuchMethodException e) {
				e.printStackTrace();
			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (ScriptException e) {
			e.printStackTrace();
		}
		return false;
	}