From 9c070e404d77ebdcb24542e2ad9d4ce5aad2b3a0 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Tue, 3 Dec 2024 18:27:43 -0600 Subject: [PATCH] fix issue #204 w/ help of @stevealkr --- sc2/unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/unit.py b/sc2/unit.py index 3c23bd8f..f2d2c241 100644 --- a/sc2/unit.py +++ b/sc2/unit.py @@ -1026,7 +1026,7 @@ def orders(self) -> List[UnitOrder]: """ Returns the a list of the current orders. """ # TODO: add examples on how to use unit orders return [UnitOrder.from_proto(order, self._bot_object) for order in self._proto.orders - if order.ability_id in self._bot_object._game_data.abilities] + if order.ability_id in self._bot_object.game_data.abilities] @cached_property def order_target(self) -> Optional[Union[int, Point2]]: