Files
ClassicAPI/src/item
Brues b55e3bae35 Add UseItemByName + route UseHearthstone through the same engine primitive
`C_Item.UseItemByName(itemInfo)` mirrors 3.3.5's function: locate the
item in bags, hand the CGItem pointer to the engine's by-pointer use
primitive `FUN_005D8D00`. That's the same fallback path
`Script_UseContainerItem` ends up in after every cursor-mode branch
(repair, spell-cast targeting, drop-on-bag) is skipped — branches
that don't fire for an addon-issued call from a clean cursor.

`C_Container.UseHearthstone` was doing the same Lua-stack roundtrip
(push bag/slot, call Script_UseContainerItem); now it locates the
hearthstone-equivalent item and calls `FUN_005D8D00` directly,
matching UseItemByName's shape.

First attempt of UseItemByName called `FUN_005E1840` thinking it was
the use primitive — turned out to be the equip/trade path that puts
the item on the cursor in mode 1 and triggers AutoEquip. The
"This item cannot be equipped" error from a hearthstone exposed the
mistake.
2026-05-18 14:11:25 -05:00
..
2026-05-10 02:35:26 -05:00
2026-05-10 02:35:26 -05:00
2026-05-16 17:58:07 -05:00
2026-05-14 14:05:27 -05:00
2026-05-14 14:24:11 -05:00
2026-05-13 23:09:31 -05:00
2026-05-08 00:52:14 -05:00
2026-05-14 14:32:44 -05:00
2026-05-08 00:10:26 -05:00
2026-05-16 17:58:07 -05:00
2026-05-16 17:58:07 -05:00
2026-05-12 22:52:35 -05:00
2026-05-14 22:32:13 -05:00
2026-05-14 22:32:13 -05:00