!Methods.isOrientedTowards(SudoRunespan.getTarget())) {
SudoRunespan.setTarget(null);
SudoRunespan.setCurrentId(-1);
}
final Item runeEss = Inventory.getItem(RUNE_ESS_ID);
if (!SudoRunespan.isNodeBlock()) {
if (runeEss == null || runeEss.getStackSize() < 50) {
SudoRunespan.setNodeBlock(true);
} else {
final SceneObject node = Methods.getBestReachableNode();
if (node != null) {
if (node.getId() != SudoRunespan.getCurrentId()) {
SudoRunespan.setTarget(node);
SudoRunespan.setCurrentId(node.getId());
entity = node;
return true;
} else {
return false;
}
}
}
}
if (SudoRunespan.isNodeBlock() && runeEss != null && runeEss.getStackSize() > 200) {
SudoRunespan.setNodeBlock(false);
}
final NPC monster = Methods.getBestReachableMonster(SudoRunespan.isNodeBlock());