Fix fast automation routing and blocked quest navigation loops
Isolate hatch, gift, exploration and breakthrough timers; cancel queued automation after settings change. Check battle readiness before local quest navigation and reject exploring teams or disabled sweeps before entry.
This commit is contained in:
@@ -29,6 +29,7 @@ from .drop_statistics import event_reward
|
||||
from .maps import stages
|
||||
from .quests import indexed, stage_has_level
|
||||
from .sweeping import SweepPolicy
|
||||
from .team_availability import team_availability_reason
|
||||
|
||||
|
||||
def value(obj, name, default=None):
|
||||
@@ -338,11 +339,9 @@ class BattleOrchestrator:
|
||||
limit = max(0, int(policy.stop_after_loss))
|
||||
if limit and self.journal.role(snapshot)["losses"] >= limit:
|
||||
return "已达战败停止次数,请核对阵容后重置战败计数"
|
||||
teams = snapshot.raw.get("teams", [])
|
||||
team = next((t for t in teams if t.get("teamName") == policy.team and t.get("teamType") == "battleTeam"), {})
|
||||
ids = [int(mid) for mid in team.get("monsters", []) if mid and int(mid) > 0]
|
||||
if not ids or any(mid not in snapshot.monsters for mid in ids):
|
||||
return "所选战队无有效魔物或实例缺失"
|
||||
reason = team_availability_reason(snapshot, policy.team)
|
||||
if reason:
|
||||
return reason
|
||||
stage_id = str(value(intent, "stage_id", "") or "")
|
||||
difficulty = str(value(intent, "difficulty", "1") or "1")
|
||||
if not stage_id:
|
||||
|
||||
Reference in New Issue
Block a user