Skip to content

Commit 77ef741

Browse files
committed
Fix #191
1 parent e0474a0 commit 77ef741

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sc2/bot_ai.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,8 @@ def research(self, upgrade_type: UpgradeId) -> bool:
11541154
structure.type_id in research_structure_types
11551155
# If structure hasn't received an action/order this frame
11561156
and structure.tag not in self.unit_tags_received_action
1157+
# Structure is ready / completed
1158+
and structure.is_ready
11571159
# Structure is idle
11581160
and structure.is_idle
11591161
# Structure belongs to protoss and is powered (near pylon)

0 commit comments

Comments
 (0)