Hello friends,
As in title, I would like to make bot use vaal skills only on monsters that are rare and above.
I know it's a little check we have to add on the OldRoutine.cs file but I don't remember how.
Thanks in advance 
As in title, I would like to make bot use vaal skills only on monsters that are rare and above.
I know it's a little check we have to add on the OldRoutine.cs file but I don't remember how.
Code:
// Auto-cast any vaal skill at the best target as soon as it's usable.
if (OldRoutineSettings.Instance.AutoCastVaalSkills && _vaalStopwatch.ElapsedMilliseconds > 1000)
{
foreach (var skill in LokiPoe.InGameState.SkillBarPanel.Skills)
{
if (skill.SkillTags.Contains("vaal"))
{
if (skill.CanUse()) // Something we have to add here if I'm not wrong. Like monster.rarity >= rare and !monster.isdead
{
await DisableAlwaysHiglight();
var err1 = LokiPoe.InGameState.SkillBarPanel.UseAt(skill.Slot, false, cachedPosition);
if (err1 == LokiPoe.InGameState.UseError.None)
{
await Coroutine.Sleep(Utility.LatencySafeValue(250));
await Coroutines.FinishCurrentAction(false);
await Coroutine.Sleep(Utility.LatencySafeValue(1000));
return true;
}
Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
}
}
}
_vaalStopwatch.Restart();
}
