Skip to content

Commit 12cbdc2

Browse files
committed
feat: simplify stage configuration logic in AsstProxy
Remove redundant condition for setting stage in Fight type tasks. Now always set the stage from the main parameter, and only override with standby_stage for subsequent iterations when standby_stage is provided. This makes the logic more straightforward and reduces unnecessary branching.
1 parent 1e6d406 commit 12cbdc2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,8 @@ def run_maatask(self, maatask, time_remain) -> "MaataskRunResult":
247247

248248
try:
249249
if type == "Fight":
250-
if i == 0:
251-
config["stage"] = stage
252-
else:
250+
config["stage"] = stage
251+
if i != 0 and standby_stage:
253252
config["stage"] = standby_stage
254253

255254
self.add_maatask(type, config)

0 commit comments

Comments
 (0)