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

Commit

Permalink
fix: changed the dot logic to dot a better target.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 25, 2023
1 parent 3f0b585 commit 422bbed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions RotationSolver/Actions/BaseAction/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,18 +412,19 @@ private IEnumerable<BattleChara> TargetFilterFuncEot(IEnumerable<BattleChara> ta
if (FilterForTarget != null) return FilterForTarget(tars);
if (TargetStatus == null || !_isEot || mustUse) return tars;

var canDot = mustUse ? tars : tars.Where(ObjectHelper.CanDot);
var DontHave = canDot.Where(CheckStatus);
var dontHave = tars.Where(CheckStatus);
var canDot = mustUse ? (dontHave.Any() ? dontHave : tars)
: dontHave.Where(ObjectHelper.CanDot);

if (mustUse)
{
if (DontHave.Any()) return DontHave;
if (dontHave.Any()) return dontHave;
if (canDot.Any()) return canDot;
return tars;
}
else
{
return DontHave;
return dontHave;
}
}

Expand Down

0 comments on commit 422bbed

Please sign in to comment.