I'd like to know how to determine my target's (or any proper unitid's) aligned faction. I've looked around the wowwiki page on the api and don't really see anything of use, the only reference is "UnitFactionGroup" but that apparently only returns Alliance/Horde. Is there a way of doing this? The information is present on the tooltip, I'm just not sure if having to scan the contents of the tooltip is really what I have to do. The end goal is simply to compare the target's faction with my own standing.
PS this is a cross-post of sorts from the [url=http://forums.worldofwarcraft.com/thread.html?topicId=3121132101&sid=1]official wow forums[url]