fix: 修复单步任务不执行的问题,添加一些日志

This commit is contained in:
MistEO
2023-01-28 02:00:24 +08:00
parent 459581fd35
commit a0807bd3d9
3 changed files with 11 additions and 2 deletions

View File

@@ -244,7 +244,10 @@ bool asst::BattleProcessTask::wait_condition(const Action& action)
{
cv::Mat image;
auto update_image_if_empty = [&]() {
if (image.empty()) image = ctrler()->get_image();
if (image.empty()) {
image = ctrler()->get_image();
check_in_battle(image);
}
};
auto do_strategy_and_update_image = [&]() {
do_strategic_action(image);