[Snippet] Better Enduring Cry and Rallying Cry (mostly for TS ranger)
In OldRoutine.cs find line starting with "if (_enduringCrySlot != -1)" and change block of code to
It would help to cast EC only if no charges left. In default state it casting everytime when there is more than one mob in area of 20 radius.
In OldRoutine.cs find line starting with "if (_enduringCrySlot != -1)" and change block of code to
PHP:
// Since EC has a cooldown, we can just cast it when mobs are in range to keep our endurance charges refreshed.
if (_enduringCrySlot != -1)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_enduringCrySlot);
if (!LokiPoe.Me.HasEnduranceCharge && skill.CanUse())
{
if (Utility.NumberOfMobsNear(LokiPoe.Me, 60) > 2)
{
var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_enduringCrySlot, true);
if (err1 == LokiPoe.InGameState.UseError.None)
{
await Coroutine.Sleep(Utility.LatencySafeValue(500));
await Coroutines.FinishCurrentAction(false);
return true;
}
Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
}
}
}
It would help to cast EC only if no charges left. In default state it casting everytime when there is more than one mob in area of 20 radius.
Last edited: