You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ordering a unit by larvae sometimes resulting in getting an error:
ERROR:sc2.bot_ai:Error: ActionResult.NotSupported (action: UnitCommand(AbilityId.LARVATRAIN_DRONE, Unit(name='Larva', tag=4314628097), None, False))
I believe this is because the method can_afford() of the class sc2.BotAI sometimes returning true even if we cannot afford the unit.
This is happening, I assuming, because there are sequential queue of orders that happening one frame (step) after another, and the information that can_afford() is referring to is not keeping up to date.
The text was updated successfully, but these errors were encountered:
Ordering a unit by larvae sometimes resulting in getting an error:
ERROR:sc2.bot_ai:Error: ActionResult.NotSupported (action: UnitCommand(AbilityId.LARVATRAIN_DRONE, Unit(name='Larva', tag=4314628097), None, False))
I believe this is because the method can_afford() of the class sc2.BotAI sometimes returning true even if we cannot afford the unit.
This is happening, I assuming, because there are sequential queue of orders that happening one frame (step) after another, and the information that can_afford() is referring to is not keeping up to date.
The text was updated successfully, but these errors were encountered: