Here is a stripped down main class that exhibits the same behavior
Code:
package com.designdecay.barrows;
import com.runemate.game.api.script.framework.task.TaskScript;
import com.designdecay.barrows.Ahrim;
public class Barrows extends TaskScript {
@Override
public void onStart(String... args){
add(new Ahrim());
}
}
Here is the referenced class
Code:
package com.designdecay.barrows;
import com.runemate.game.api.script.framework.task.Task;
import com.runemate.game.api.rs3.local.hud.Powers;
public class Ahrim extends Task {
@Override
public boolean validate() {
return true;
}
@Override
public void execute() {
Powers.Magic.FIRE_BOLT.activate();
System.out.println("Ahrim");
}
}
It reaches the code block properly, but it doesn't select the spell. I still think this is a failure on my part, but I can't for the life of me figure out how to use it properly.