Go to the UnitReaction Lua handler, then it's fairly simple to find from there.
Code:
signed int __cdecl lua_UnitReaction(int pL)
{
WoWUnit *v1; // eax@3
WoWUnit *v2; // edi@3
char *v3; // eax@3
char *v4; // eax@3
signed int result; // eax@5
int v6; // ST28_4@5
int v7; // ST24_4@7
if ( FrameScript__IsString((int *)pL, 1) && FrameScript__IsString((int *)pL, 2) )
{
v3 = FrameScript_ToLString((int *)pL, 1, 0);
v2 = GetUnitFromName(v3);
v4 = FrameScript_ToLString((int *)pL, 2, 0);
v1 = GetUnitFromName(v4);
if ( v2 && v1 )
{
v6 = CGUnit_C__UnitReaction(v2, v1) + 1;
FrameScript_PushNumber((int *)pL, (long double)v6);
result = 1;
}
else
{
FrameScript_pushnil(pL);
result = 1;
}
}
else
{
FrameScript_DisplayError(pL, "Usage: UnitReaction(\"unit\", \"otherUnit\")", v7);
result = 0;
}
return result;
}