SC2: Fix Kerrigan logic for active spells (#5746)

This commit is contained in:
Ziktofel
2025-12-15 00:56:54 +01:00
committed by GitHub
parent ce38d8ced6
commit 577b958c4d

View File

@@ -1168,11 +1168,7 @@ class SC2Logic:
def two_kerrigan_actives(self, state: CollectionState, story_tech_available=True) -> bool:
if story_tech_available and self.grant_story_tech == GrantStoryTech.option_grant:
return True
count = 0
for i in range(7):
if state.has_any(kerrigan_logic_active_abilities, self.player):
count += 1
return count >= 2
return state.count_from_list(item_groups.kerrigan_logic_active_abilities, self.player) >= 2
# Global Protoss
def protoss_power_rating(self, state: CollectionState) -> int: