Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action().unitCommand without enough minerals not generating action error #43

Open
ShadowLordAlpha opened this issue Oct 4, 2020 · 1 comment

Comments

@ShadowLordAlpha
Copy link
Contributor

I am using action().unitCommand to attempt to build a structure. If I don't have the resources to build it I would expect an ActionError with the ActionResult.NOT_ENOUGH_MINERALS to be returned. I get no error even though the red test shows onscreen, I check both after actions are sent within the same update and at the beginning of the next update for so I should not be missing it.

As a side note it may be more useful to have these as a method like onStep that gets called instead of a list you have to get.

@ShadowLordAlpha
Copy link
Contributor Author

So, apparently this only happens with zerg supply cap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant