From 5d65dab393a9dc9d3c7763a221ec2ec95d8d64de Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Wed, 25 Feb 2026 13:25:06 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=87=AA=E5=8A=A8=E7=BC=96=E9=98=9F?= =?UTF-8?q?=E6=97=A0=E5=B9=B2=E5=91=98=E7=AD=89=E7=BA=A7=E3=80=81=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E7=AD=89=E7=BA=A7=E8=A6=81=E6=B1=82=E6=97=B6=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp b/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp index 9ce4bf311c..ac30d058f8 100644 --- a/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp +++ b/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp @@ -655,6 +655,9 @@ bool asst::BattleFormationTask::check_oper_level( const battle::OperUsage& oper, bool ignore) { + if (oper.requirements.elite == 0 && oper.requirements.level == 0) { + return true; // 无等级要求 + } auto [_elite, _level] = m_quick_formation_ui.analyze_oper_level(image, flag); if (_elite == -1 || _level == -1) { LogWarn << __FUNCTION__ << "| Cannot recognize oper" << oper.name << "level info, reset to 0,0"; @@ -707,6 +710,9 @@ bool asst::BattleFormationTask::check_and_select_skill(const battle::OperUsage& return true; }*/ + if (oper.requirements.skill_level == 0) { + return true; // 无技能等级要求 + } auto result = m_quick_formation_ui.find_oper_skill(oper.skill, oper.requirements.skill_level == 0); if (!result) { LogError << __FUNCTION__ << "| Skill" << oper.skill << "not found in quick detection";