Skip to content

Commit

Permalink
AutoGeniusInvokation: fix last card burning 2
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Nov 25, 2023
1 parent 944c61b commit f8f8414
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f8f8414

Please sign in to comment.