From 253fa4c9ed68c673b13ac8511bce59121e9d1bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Wed, 1 Feb 2023 23:38:19 +0800 Subject: [PATCH] fix: peloton will be used when partymember in radius doesn't has the status Peloton. --- .../Rotations/CustomRotation/CustomRotation_Actions.cs | 3 +-- discord.md | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/RotationSolver/Rotations/CustomRotation/CustomRotation_Actions.cs b/RotationSolver/Rotations/CustomRotation/CustomRotation_Actions.cs index 8d0c1774b..be6078fdf 100644 --- a/RotationSolver/Rotations/CustomRotation/CustomRotation_Actions.cs +++ b/RotationSolver/Rotations/CustomRotation/CustomRotation_Actions.cs @@ -200,8 +200,7 @@ internal RoleAction(ActionID actionID, JobRole[] roles, bool isFriendly = false, /// public static IBaseAction Peloton { get; } = new RoleAction(ActionID.Peloton, new JobRole[] { JobRole.RangedPhysical }, true) { - StatusProvide = new StatusID[] { StatusID.Peloton }, - ActionCheck = b => !InCombat && !TargetUpdater.HostileTargets.Any(), + ActionCheck = b => !InCombat && TargetUpdater.PartyMembers.GetObjectInRadius(20).Any(p => !p.HasStatus(false, StatusID.Peloton)), }; private protected virtual IBaseAction Raise => null; diff --git a/discord.md b/discord.md index 2e8ef5b25..df60aaec5 100644 --- a/discord.md +++ b/discord.md @@ -10,9 +10,9 @@ Then, it will highlight the best action one the hot bar, or help you to click on It is designed for `general combat`, not for savage or ultimate. So use it carefully. +Learn how to download, install and use here: https://archidog1998.github.io/RotationSolver/#/ - -`https://raw.githubusercontent.com/ArchiDog1998/RotationSolver/main/pluginmaster.json` +Change Logs are here: https://github.com/ArchiDog1998/RotationSolver/blob/release/CHANGELOG.md