tozededao
Community Developer
- Joined
- Jan 15, 2010
- Messages
- 1,225
[Snippet] Arctic Armour
Since they introduced a new Arctic Armour the old code is no longer working. Here's what you need to replace
From :
To :
Since they introduced a new Arctic Armour the old code is no longer working. Here's what you need to replace
From :
Code:
// Handle Arctic Armour conditionally.
if (_arcticArmourSlot != -1)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_arcticArmourSlot);
if (!LokiPoe.Me.HasArcticArmourBuff && skill.CanUse())
{
if (OldRoutineSettings.Instance.ArcticArmourCastMode == 1 ||
(OldRoutineSettings.Instance.ArcticArmourCastMode == 2 &&
Utility.NumberOfMobsNear(LokiPoe.Me, OldRoutineSettings.Instance.CombatRange) > 0))
{
var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_arcticArmourSlot, 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);
}
}
}
To :
Code:
// Handle Arctic Armour conditionally.
if (_arcticArmourSlot!= -1)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_arcticArmourSlot);
if (skill.CanUse() && !LokiPoe.Me.HasAura("new_arctic_armour"))
{
var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_arcticArmourSlot, 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);
}
}