A ligand is effectively considered a sidechain, to the same setting also affects bonds to ligands.
There's a "Sidechain H-Bonds" slider in the Behavior Options menu, and the functions behavior.SetSidechainHBondImportance and behavior.GetSidechainHBondImportance allow recipes to control this setting.
Both the sidechain and backbone h-bond settings default to a value of 1.0. They can be adjusted between 0.0 and 3.0. A value less than 1.0 reduces the normal importance of hydrogen bond, while a value above 1.0 increases it.
These settings are logically similar to Clashing Importance, but clashing importance can only be decreased, where hydrogen bond importance can be increased or decreased.
The "Sidechain H-Bonds" setting affects both sidechain-sidechain bonds and sidechain-backbone bonds, as Foldit scientist rmoretti explained in the "#bugs and feedback" channel on the Foldit Discord server on 29 October 2020:
I wasn't involved with the slider code at all, but taking a quick glance at it, the Sidechain slider will change both the sidechain-sidechain hbond weights as well as the sidechain backbone hbond weights. The Backbone slider adjusts only the backbone-backbone weights (both the alpha-helical short range and the beta+loop long-range ones).
Ligands act like a sidechain. Hydrogen bonds to a ligand will be treated like hbonds to sidechains, and the sliders will affect them. (They use the same score terms.)
The "Sidechain H-Bonds" setting should affect bonds to a ligand.