// Simply cast Blood Rage if we have it.
if (_bloodRageSlot != -1)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarHud.Slot(_bloodRageSlot);
if (skill.CanUse() && !LokiPoe.Me.HasBloodRageBuff && cachedDistance < OldRoutineSettings.Instance.CombatRange)
{
await Coroutines.FinishCurrentAction();
var err1 = LokiPoe.InGameState.SkillBarHud.Use(_bloodRageSlot, true);
if (err1 == LokiPoe.InGameState.UseResult.None)
{
await Coroutines.LatencyWait();
await Coroutines.FinishCurrentAction(false);
await Coroutines.LatencyWait();
return true;
}
Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
}
}