Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: fix for dot targeting when mustuse.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 2, 2023
1 parent b96a082 commit 4bf54e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion RotationSolver/Actions/BaseAction/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ internal bool CanGetTarget(BattleChara target, BattleChara subTarget)
private IEnumerable<BattleChara> TargetFilterFuncEot(IEnumerable<BattleChara> tars, bool mustUse)
{
if (FilterForTarget != null) return FilterForTarget(tars);
if (TargetStatus == null || !_isEot || mustUse) return tars;
if (TargetStatus == null || !_isEot) return tars;

var dontHave = tars.Where(CheckStatus);
var canDot = dontHave.Where(ObjectHelper.CanDot);
Expand Down
11 changes: 5 additions & 6 deletions RotationSolver/Updaters/TargetUpdater_Friends.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,12 @@ private unsafe static void UpdateFriends(IEnumerable<BattleChara> allTargets)
UpdateCanHeal(Service.ClientState.LocalPlayer);
}

static RandomDelay _healDelay1 = new RandomDelay(() => (Service.Configuration.HealDelayMin, Service.Configuration.HealDelayMax));
static RandomDelay _healDelay1 = new RandomDelay(GetHealRange);
static RandomDelay _healDelay2 = new RandomDelay(GetHealRange);
static RandomDelay _healDelay3 = new RandomDelay(GetHealRange);
static RandomDelay _healDelay4 = new RandomDelay(GetHealRange);

static RandomDelay _healDelay2 = new RandomDelay(() => (Service.Configuration.HealDelayMin, Service.Configuration.HealDelayMax));

static RandomDelay _healDelay3 = new RandomDelay(() => (Service.Configuration.HealDelayMin, Service.Configuration.HealDelayMax));

static RandomDelay _healDelay4 = new RandomDelay(() => (Service.Configuration.HealDelayMin, Service.Configuration.HealDelayMax));
static (float min, float max) GetHealRange() => (Service.Configuration.HealDelayMin, Service.Configuration.HealDelayMax);

static void UpdateCanHeal(PlayerCharacter player)
{
Expand Down

0 comments on commit 4bf54e3

Please sign in to comment.