fix: 剿灭掉落识别不到合成玉时不停止任务 (#16726)

This commit is contained in:
Roland125
2026-05-19 01:38:40 +08:00
committed by GitHub
parent 7583758492
commit 9475e2f76a

View File

@@ -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);