feat: allow empty confirm list in non-calc_only_task

fix: https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/2334
This commit is contained in:
Horror Proton
2022-10-23 00:24:34 +08:00
parent b8a66f2229
commit 973d64a113

View File

@@ -34,7 +34,7 @@ namespace asst
protected:
virtual bool _run() override;
bool is_calc_only_task() { return m_max_times <= 0 || m_confirm_level.empty(); }
bool is_calc_only_task() { return m_max_times <= 0 && m_confirm_level.empty(); }
std::optional<Rect> try_get_start_button(const cv::Mat&);
bool recruit_one(const Rect&);
bool check_recruit_home_page();