From f8f8414909edf544ea88615f5e071c081006652a Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Sun, 26 Nov 2023 00:07:50 +0800 Subject: [PATCH] AutoGeniusInvokation: fix last card burning 2 --- .../AutoGeniusInvokation/GeniusInvokationControl.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/BetterGenshinImpact/GameTask/AutoGeniusInvokation/GeniusInvokationControl.cs b/BetterGenshinImpact/GameTask/AutoGeniusInvokation/GeniusInvokationControl.cs index 66435630..5559dd0a 100644 --- a/BetterGenshinImpact/GameTask/AutoGeniusInvokation/GeniusInvokationControl.cs +++ b/BetterGenshinImpact/GameTask/AutoGeniusInvokation/GeniusInvokationControl.cs @@ -553,16 +553,13 @@ public void ActionPhaseElementalTuning(int currentCardCount) { var rect = TaskContext.Instance().SystemInfo.CaptureAreaRect; var m = Simulation.SendInput.Mouse; + ClickExtension.Click(rect.X + rect.Width / 2d, rect.Y + rect.Height - 50); + Sleep(1500); if (currentCardCount == 1) { // 最后一张牌在右侧,而不是中间 - ClickExtension.Click(rect.X + rect.Width / 2d + 120, rect.Y + rect.Height - 50); + ClickExtension.Move(rect.X + rect.Width / 2d + 120, rect.Y + rect.Height - 50); } - else - { - ClickExtension.Click(rect.X + rect.Width / 2d, rect.Y + rect.Height - 50); - } - Sleep(1500); m.LeftButtonDown(); Sleep(100); m = ClickExtension.Move(rect.X + rect.Width - 50, rect.Y + rect.Height / 2d);