Skip to content

Commit 2fe8c43

Browse files
authored
SC2: Fix Kerrigan Primal Form on Half Completion (#3419)
1 parent 6f6bf3c commit 2fe8c43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

worlds/sc2/Client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,8 @@ def kerrigan_primal(ctx: SC2Context, kerrigan_level: int) -> bool:
966966
return kerrigan_level >= 35
967967
elif ctx.kerrigan_primal_status == KerriganPrimalStatus.option_half_completion:
968968
total_missions = len(ctx.mission_id_to_location_ids)
969-
completed = len([(mission_id * VICTORY_MODULO + get_location_offset(mission_id)) in ctx.checked_locations
970-
for mission_id in ctx.mission_id_to_location_ids])
969+
completed = sum((mission_id * VICTORY_MODULO + get_location_offset(mission_id)) in ctx.checked_locations
970+
for mission_id in ctx.mission_id_to_location_ids)
971971
return completed >= (total_missions / 2)
972972
elif ctx.kerrigan_primal_status == KerriganPrimalStatus.option_item:
973973
codes = [item.item for item in ctx.items_received]

0 commit comments

Comments
 (0)