mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Selects a reputation-pane faction by ID rather than by displayed-list position, matching what SetWatchedFactionByID gives over the stock index call. A ClassicAPI extension -- Blizzard has no such call. The engine already holds the selection AS a faction id: the stock SetSelectedFaction(index) resolves its argument through the faction index resolver and stores the resulting id, and GetSelectedFaction maps that id back to an index. So this writes the id straight through, with no list walk, and works even while the faction is not listed. Also mirror the stock SetSelectedFaction global into C_Reputation. Its handler already has the Lua C ABI, so it registers as-is rather than being reimplemented.