Skip to content

Commit 2017d73

Browse files
committed
fix: 修复了选择胡萝卜队时数组越界的问题
1 parent 86f32d4 commit 2017d73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

module/umamusume/script/cultivate_task/event/scenario_event.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ def aoharuhai_team_name_event(ctx: UmamusumeContext) -> int:
3737
match_result.matched_area[0][0]:match_result.matched_area[1][0]] = 0
3838
else:
3939
break
40+
41+
if ctx.task.detail.scenario_config.aoharu_config.aoharu_team_name_selection == 4:
42+
log.debug("使用选项<胡萝卜>队")
43+
return len(event_selector_list)
44+
4045
event_selector_list.sort(key=lambda x: x.center_point[1])
4146
for i in range(len(event_selector_list)):
4247
event = event_selector_list[i]

0 commit comments

Comments
 (0)