Commit Graph
1 Commits
Author SHA1 Message Date
Brues c46e4516b0 Add GetActionInfo backport (spell / macro / item)
Mirrors modern WoW's `GetActionInfo(slot)` against the vanilla 1.12.1
action table at `0x00BC6980`. Top-4-bits encode the type tag; the
`0x40000000` tag is ambiguous between macros and bag-items and is
disambiguated by walking the 36-entry macro-slot map at `0x00BDCC60`
(same trick SuperWoWhook's modified `GetActionText` uses).

Returns:
  - empty:      nil
  - spell:      "spell", spellID, "spell"
  - macro:      "macro", macroSlot (1-based)
  - item-by-ID: "item", itemID
  - bag-item:   "item", nil    (itemID extraction from the bag-action
                                 hash struct still needs reversing;
                                 in practice these slots are stale —
                                 the engine's HasAction returns false
                                 for them)
2026-05-18 13:28:11 -05:00