I was thinking about using UnitInRange, but then I realized it wouldn't work for the Warsong flag since it's an object, and not to mention, it's only relative to yourself, not two OTHER units.
So the other method I'm considering is checking to see if the flag carrier is in his own flag room. That seems to be the most plausible approach. How would one go about doing this? Would I even be able to retrieve this type of information since it's a "subzone" and not a full zone?
Any help would be appreciated.