File tree 1 file changed +2
-2
lines changed
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):
148
148
for x in range (0 , deficit ):
149
149
if worker_pool :
150
150
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 ]:
152
152
await self .do (w .move (g ))
153
153
await self .do (w .return_resource (queue = True ))
154
154
else :
@@ -163,7 +163,7 @@ async def distribute_workers(self):
163
163
if worker_pool :
164
164
w = worker_pool .pop ()
165
165
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 ]:
167
167
await self .do (w .move (townhall ))
168
168
await self .do (w .return_resource (queue = True ))
169
169
await self .do (w .gather (mf , queue = True ))
You can’t perform that action at this time.
0 commit comments