Skip to content

Unpowered buildings can't cancel production #96

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions