Skip to content

Why use AbilityId.TERRANBUILDDROP_SUPPLYDEPOTDROP as the addon_place ability value? #223

@yorhaha

Description

@yorhaha

https://github.com/BurnySc2/python-sc2/blob/a747fc6b461d0303c6357650199ec642cd293828/sc2/bot_ai.py#L721C31-L721C62

Should it be changed to:

if addon_place:
    # Filter remaining positions if addon can be placed
    res = await self.client._query_building_placement_fast(
        # AbilityId.TERRANBUILDDROP_SUPPLYDEPOTDROP,
        building,
        [p.offset((2.5, -0.5)) for p in possible],
    )
    possible = [p for r, p in zip(res, possible) if r]

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions