File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ async def distribute_workers(self):
148148 for x in range (0 , deficit ):
149149 if worker_pool :
150150 w = worker_pool .pop ()
151- if len (w .orders ) == 1 and w .orders [0 ].ability .id in [AbilityId .HARVESTRETURN ]:
151+ if len (w .orders ) == 1 and w .orders [0 ].ability .id in [AbilityId .HARVEST_RETURN ]:
152152 await self .do (w .move (g ))
153153 await self .do (w .return_resource (queue = True ))
154154 else :
@@ -163,7 +163,7 @@ async def distribute_workers(self):
163163 if worker_pool :
164164 w = worker_pool .pop ()
165165 mf = self .state .mineral_field .closest_to (townhall )
166- if len (w .orders ) == 1 and w .orders [0 ].ability .id in [AbilityId .HARVESTRETURN ]:
166+ if len (w .orders ) == 1 and w .orders [0 ].ability .id in [AbilityId .HARVEST_RETURN ]:
167167 await self .do (w .move (townhall ))
168168 await self .do (w .return_resource (queue = True ))
169169 await self .do (w .gather (mf , queue = True ))
You can’t perform that action at this time.
0 commit comments