diff --git a/sc2/bot_ai.py b/sc2/bot_ai.py index 55ef056e..1885a0c9 100644 --- a/sc2/bot_ai.py +++ b/sc2/bot_ai.py @@ -694,7 +694,7 @@ async def find_placement( building = self.game_data.units[building.value].creation_ability.id if await self.can_place_single(building, near) and ( - not addon_place or await self.can_place_single(UnitTypeId.SUPPLYDEPOT, near.offset((2.5, -0.5))) + not addon_place or await self.can_place_single(AbilityId.TERRANBUILD_SUPPLYDEPOT, near.offset((2.5, -0.5))) ): return near @@ -718,7 +718,7 @@ async def find_placement( if addon_place: # Filter remaining positions if addon can be placed res = await self.client._query_building_placement_fast( - AbilityId.TERRANBUILDDROP_SUPPLYDEPOTDROP, + AbilityId.TERRANBUILD_SUPPLYDEPOT, [p.offset((2.5, -0.5)) for p in possible], ) possible = [p for r, p in zip(res, possible) if r]