Am I not able to use any sort of NPC as a break condition? I've been having a problem getting this to work. Maybe I'm just being a dummy xD
walkEvent.setBreakCondition(new Condition() {
@Override
public boolean evaluate() {
return mage != null && mage.isVisible();
}
});