mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-25 10:05:49 +08:00
重置鼠标按键,发送 3 次普攻指令,确保枫原万叶下落拾取动作完整执行 (#3101)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -28,6 +28,9 @@ public class Simulation
|
||||
SendInput.Keyboard.KeyUp(key);
|
||||
}
|
||||
}
|
||||
SendInput.Mouse.LeftButtonUp();
|
||||
SendInput.Mouse.RightButtonUp();
|
||||
SendInput.Mouse.MiddleButtonUp();
|
||||
}
|
||||
|
||||
public static bool IsKeyDown(User32.VK key)
|
||||
|
||||
@@ -684,7 +684,12 @@ public class AutoFightTask : ISoloTask
|
||||
picker.UseSkill(true);
|
||||
await Delay(50, ct);
|
||||
Simulation.SendInput.SimulateAction(GIActions.NormalAttack);
|
||||
await Delay(100, ct);
|
||||
Simulation.SendInput.SimulateAction(GIActions.NormalAttack);
|
||||
await Delay(100, ct);
|
||||
Simulation.SendInput.SimulateAction(GIActions.NormalAttack);
|
||||
await Delay(1500, ct);
|
||||
picker.AfterUseSkill();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1084,6 +1084,10 @@ public class AutoLeyLineOutcropTask : ISoloTask
|
||||
kazuha.UseSkill(true);
|
||||
await Delay(50, _ct);
|
||||
Simulation.SendInput.SimulateAction(GIActions.NormalAttack);
|
||||
await Delay(100, _ct);
|
||||
Simulation.SendInput.SimulateAction(GIActions.NormalAttack);
|
||||
await Delay(100, _ct);
|
||||
Simulation.SendInput.SimulateAction(GIActions.NormalAttack);
|
||||
await Delay(1500, _ct);
|
||||
kazuha.AfterUseSkill();
|
||||
_logger.LogInformation("战后聚集拾取:万叶长E动作完成,等待拾取动作结束");
|
||||
|
||||
@@ -25,8 +25,8 @@ public class PickUpCollectHandler : IActionHandler
|
||||
/// </summary>
|
||||
public static readonly string[] PickUpActions =
|
||||
[
|
||||
"枫原万叶-长E keydown(E),wait(0.7),keyup(E),attack(0.2),wait(0.5)",
|
||||
"枫原万叶-短E e,attack(0.15)",
|
||||
"枫原万叶-长E attack(0.08),keydown(E),wait(1),keyup(E),attack(0.5)",
|
||||
"枫原万叶-短E attack(0.08),keydown(E),wait(0.47),keyup(E),attack(0.5)",
|
||||
"琴-短E wait(0.1),keydown(E),wait(0.4),moveby(1000,0),wait(0.2),moveby(1000,0),wait(0.2),moveby(1000,0),wait(0.2),moveby(1000,-3500),wait(1.8),keyup(E),wait(0.3),click(middle)",
|
||||
"琴-长E wait(0.1),click(middle),keydown(E),click(middle),wait(0.4),moveby(500,0),wait(0.1),moveby(500,0),wait(0.1)," +
|
||||
"moveby(500,0),wait(0.1),moveby(500,0),wait(0.1),moveby(500,0),wait(0.1),moveby(500,0),wait(0.1),moveby(500,0),wait(0.1)," +
|
||||
|
||||
Reference in New Issue
Block a user