So I just noticed that some protected lua functions don't use the CGGameUI__CanPerformAction check, therefor rendering the detour/patch of this function useless for those functions, such as TargetUnit.
Does anyone know how the game client actually determines that you're calling this function from non-blizz UI?
I've search for pointers/references to lua_TargetUnit in IDA and unfortunately haven't been able to get anywhere so am turning to the crowd
Thanks in advance!