Skip to content

Commit

Permalink
fix issue #204 w/ help of @stevealkr
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanyiwu committed Dec 4, 2024
1 parent dcb9070 commit 9c070e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc2/unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]:
Expand Down

0 comments on commit 9c070e4

Please sign in to comment.