// Bone Offering Support
if (_boneOfferingSlot != -1)
{
var skill = LokiPoe.InGameState.SkillBarHud.Slot(_boneOfferingSlot);
if (skill.CanUse() && !LokiPoe.Me.HasAura("Bone Offering"))
{
var target = BestDeadTarget;
if (target != null)
{
await DisableAlwaysHiglight();
await Coroutines.FinishCurrentAction();
Log.InfoFormat("[Logic] using {0} on {1}.", skill.Name, target.Name);
var err1 = LokiPoe.InGameState.SkillBarHud.UseAt(_boneOfferingSlot, false, target.Position);
if (err1 == LokiPoe.InGameState.UseResult.None)
{
await Coroutines.LatencyWait();
await Coroutines.FinishCurrentAction(false);
await Coroutines.LatencyWait();
return true;
}
Log.ErrorFormat("[Logic] UseAt returned {0} for {1}.", err1, skill.Name);
}
}
}