// Simply cast Blood Rage if we have it.
if (_bloodRageSlot != -1)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_bloodRageSlot);
if (skill.CanUse() && !LokiPoe.Me.HasBloodRageBuff)
{
var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_bloodRageSlot, true);
if (err1 == LokiPoe.InGameState.UseError.None)
{
await Coroutine.Sleep(Utility.LatencySafeValue(500));
await Coroutines.FinishCurrentAction(false);
await Coroutine.Sleep(Utility.LatencySafeValue(100));
return true;
}
Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
}
}