mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
InteractUnit(unit [, exactMatch]) is 4.3.4's Script_InteractUnit. It resolves the argument the way 4.3.4 does: - "mouseover" reads the hovered-object GUID, which in 1.12 is any object type (units, game objects, corpses). - A unit token resolves to its GUID. - Any other text runs the engine's by-name search with TYPEMASK_OBJECT. It then calls 1.12's own OnSpriteRightClick (0x00492820), the function a world right-click runs, so targeting, the object's right-click and the autoloot modifier all come from the engine. 4.3.4's taint gate is dropped because 1.12 has no secure environment. Both bindings are spliced into the TARGETING group, as in 4.3.4. Their names are added to every locale, using Blizzard's strings.