Hi, searched the forum and didn't see any thread about "CGGameUI::OnSpriteLeftClick" or "CGGameUI::OnSpriteRightClick". I struggled to effectively target units, so I figured I'd share my solution to targeting units.
Here is my wrapper for OnSpriteLeftClick in c++
Code:
uintptr_t spriteLeftClick = 0xF68010;
void Base::Functions::SpriteLeftClick(pWowGuid guid) {
reinterpret_cast<int64_t(__fastcall*)(pWowGuid)>(base + spriteLeftClick)(guid);
}
And then ya know, you can just pass a pointer to any unit's guid and target them. This updates the faceplate and you'll see your target update in the ui
OnSpriteLeftClick(pWowGuid unitGuid) is currently at 0xF68010
OnSpriteRightClick(pWowGuid unitGuid) is currently at 0xF68400
CGGameUI::HandleSpriteClick(pWowGuid unitGuid) is currently at 0xF5C7E0
Pattern for HandleSpriteClick I autogenerated with PatternMaker was: 40 53 48 83 EC ? 83 3D ? ? ? ? ? 48 8B D9 74 ? BA ? ? ? ?
Picture below is Wow_18179_OSX_x64 dump versus my Classic 1.13.6.37497 dump