mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
fix: 剿灭掉落识别不到合成玉时不停止任务 (#16726)
This commit is contained in:
@@ -207,13 +207,12 @@ bool asst::StageDropsTaskPlugin::recognize_drops()
|
||||
}
|
||||
|
||||
if (m_is_annihilation) {
|
||||
bool has_orundum = std::ranges::any_of(m_cur_drops, [](const auto& drop) {
|
||||
const bool has_orundum = std::ranges::any_of(m_cur_drops, [](const auto& drop) {
|
||||
return drop.item_id == "4003"; // see StageDropType::Reward
|
||||
});
|
||||
if (!has_orundum) {
|
||||
LogInfo << __FUNCTION__ << "No orundum dropped in annihilation, stopping task";
|
||||
stop_task();
|
||||
return true;
|
||||
LogInfo << __FUNCTION__
|
||||
<< "No orundum (4003) in recognized drops";
|
||||
}
|
||||
|
||||
RegionOCRer ocr(image);
|
||||
|
||||
Reference in New Issue
Block a user