Skip to content

Unpowered buildings can't cancel production #96

Open

Description

@dgant

See bwapi/bwapi#918

JBWAPI, like the BWAPI client before it, rejects commands to unpowered units: https://github.com/JavaBWAPI/JBWAPI/blob/develop/src/main/java/bwapi/Unit.java#L3189

Fixing it on the JBWAPI side isn't enough -- the BWAPI server will reject the command too -- but is a good start. Like I wrote on the other issue, I do not think isPowered needs to be checked at all, or at most should be conditioned on whether the command is a Cancel command.

Activity

  1. added
    bwapi-serverside
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bwapi-serverside

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions