Simple solution, you put an icon in the box that allows you to attack that person. If I have it switched on, I'm assuming anyone can attack me if they have their's on. If I have it turned off, you can't attack me.
POTBS had this with the two swords above the ship in OW, implement something similar and now two people can duel if they wish in PvE.