修改二次拾取,使万叶能再次拾取。 (#2760)

This commit is contained in:
this-Fish
2026-02-13 22:24:27 +08:00
committed by GitHub
parent 908294e2fe
commit 0d466e5022
3 changed files with 10 additions and 5 deletions

View File

@@ -607,7 +607,12 @@ public class AutoFightTask : ISoloTask
if (picker.Name == "枫原万叶")
{
var time = TimeSpan.FromSeconds(picker.GetSkillCdSeconds());
if (!(lastFightName == picker.Name && time.TotalSeconds > 3))
// 如果配置了二次拾取,或者不满足跳过条件(上次是万叶且冷却时间>3秒则执行拾取
bool shouldSkip = lastFightName == picker.Name && time.TotalSeconds > 3;
bool forcePickup = _taskParam.QinDoublePickUp;
if (forcePickup || !shouldSkip)
{
Logger.LogInformation("使用 枫原万叶-长E 拾取掉落物");
await Delay(200, ct);