diff --git a/sc2/game_state.py b/sc2/game_state.py index fd7af3db..4c221541 100644 --- a/sc2/game_state.py +++ b/sc2/game_state.py @@ -280,8 +280,8 @@ def actions(self) -> list[ActionRawUnitCommand | ActionRawToggleAutocast | Actio # Actions that have a point as target actions.append( ActionRawUnitCommand( - game_loop, raw_unit_command.ability_id, + game_loop, list(raw_unit_command.unit_tags), raw_unit_command.queue_command, Point2.from_proto(raw_unit_command.target_world_space_pos), @@ -291,8 +291,8 @@ def actions(self) -> list[ActionRawUnitCommand | ActionRawToggleAutocast | Actio # Actions that have a unit as target actions.append( ActionRawUnitCommand( - game_loop, raw_unit_command.ability_id, + game_loop, list(raw_unit_command.unit_tags), raw_unit_command.queue_command, None, @@ -304,8 +304,8 @@ def actions(self) -> list[ActionRawUnitCommand | ActionRawToggleAutocast | Actio raw_toggle_autocast_action = action_raw.toggle_autocast actions.append( ActionRawToggleAutocast( - game_loop, raw_toggle_autocast_action.ability_id, + game_loop, list(raw_toggle_autocast_action.unit_tags), ) )