Skip to content

Commit

Permalink
fix: 等待我方回合成功时候,角色被击败选择出战提示还未播放完成,这种情况添加延时。
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Aug 7, 2023
1 parent 702a257 commit bff4c6f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion GeniusInvokationAutoToy/Core/GameControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ public void WaitForMyTurn(Duel duel, int waitTime = 0)

// 判断对方行动是否已经结束
int retryCount = 0;
int inMyActionCount = 0;
while (true)
{
if (IsInMyAction())
Expand All @@ -920,7 +921,12 @@ public void WaitForMyTurn(Duel duel, int waitTime = 0)
}
else
{
break;
// 多延迟2s // 保证阵亡提示已经完成显示
inMyActionCount++;
if (inMyActionCount == 3)
{
break;
}
}
}
else if (IsDuelEnd())
Expand Down

0 comments on commit bff4c6f

Please sign in to comment.