Skip to content

Commit 988c864

Browse files
committed
Fix #223
1 parent a747fc6 commit 988c864

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sc2/bot_ai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ async def find_placement(
694694
building = self.game_data.units[building.value].creation_ability.id
695695

696696
if await self.can_place_single(building, near) and (
697-
not addon_place or await self.can_place_single(UnitTypeId.SUPPLYDEPOT, near.offset((2.5, -0.5)))
697+
not addon_place or await self.can_place_single(AbilityId.TERRANBUILD_SUPPLYDEPOT, near.offset((2.5, -0.5)))
698698
):
699699
return near
700700

@@ -718,7 +718,7 @@ async def find_placement(
718718
if addon_place:
719719
# Filter remaining positions if addon can be placed
720720
res = await self.client._query_building_placement_fast(
721-
AbilityId.TERRANBUILDDROP_SUPPLYDEPOTDROP,
721+
AbilityId.TERRANBUILD_SUPPLYDEPOT,
722722
[p.offset((2.5, -0.5)) for p in possible],
723723
)
724724
possible = [p for r, p in zip(res, possible) if r]

0 commit comments

Comments
 (0)