Skip to content

Commit 7e904a1

Browse files
authored
SC2: Fix Kerrigan presence resolving when deciding which races should be used (#2978)
1 parent bdd498d commit 7e904a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

worlds/sc2/PoolFilter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def filter_items(world: World, mission_req_table: Dict[SC2Campaign, Dict[str, Mi
560560
def get_used_races(mission_req_table: Dict[SC2Campaign, Dict[str, MissionInfo]], world: World) -> Set[SC2Race]:
561561
grant_story_tech = get_option_value(world, "grant_story_tech")
562562
take_over_ai_allies = get_option_value(world, "take_over_ai_allies")
563-
kerrigan_presence = get_option_value(world, "kerrigan_presence") \
563+
kerrigan_presence = get_option_value(world, "kerrigan_presence") in kerrigan_unit_available \
564564
and SC2Campaign.HOTS in get_enabled_campaigns(world)
565565
missions = missions_in_mission_table(mission_req_table)
566566

@@ -572,7 +572,7 @@ def get_used_races(mission_req_table: Dict[SC2Campaign, Dict[str, MissionInfo]],
572572
if SC2Mission.ENEMY_WITHIN in missions:
573573
# Zerg units need to be unlocked
574574
races.add(SC2Race.ZERG)
575-
if kerrigan_presence in kerrigan_unit_available \
575+
if kerrigan_presence \
576576
and not missions.isdisjoint({SC2Mission.BACK_IN_THE_SADDLE, SC2Mission.SUPREME, SC2Mission.CONVICTION, SC2Mission.THE_INFINITE_CYCLE}):
577577
# You need some Kerrigan abilities (they're granted if Kerriganless or story tech granted)
578578
races.add(SC2Race.ZERG)

0 commit comments

Comments
 (0)