// Handle totem logic.
if (_totemSlot != -1 &&
	_totemStopwatch.ElapsedMilliseconds > OldRoutineSettings.Instance.TotemDelayMs)
{
	var skill = LokiPoe.InGameState.SkillBarHud.Slot(_totemSlot);
	if (skill.CanUse()  && skill.DeployedObjects.Select(o => o as Monster).Count(t => !t.IsDead && t.Distance < 60) <
		LokiPoe.Me.MaxTotemCount)
	{
		await DisableAlwaysHiglight();
		await Coroutines.FinishCurrentAction();
		var err1 = LokiPoe.InGameState.SkillBarHud.UseAt(_totemSlot, true,
		myPos.GetPointAtDistanceAfterThis(cachedPosition, cachedDistance/2));
		_totemStopwatch.Restart();
	        if (err1 == LokiPoe.InGameState.UseResult.None)
			return true;
		Log.ErrorFormat("[Logic] UseAt returned {0} for {1}.", err1, skill.Name);
	}
}