Yeah, but he didn't know I was there when the spell went off. The way I am picturing it is that he becomes my friend (because he failed the save) and then I appear before him.
I mean, what would the order of operation be here?
1)
Begin casting Charm Person
Target BBEG
BBEG rolls save (and fails because he gets no +5 bonus)
Spell is officially complete and I now become visible, with a new friend.
2)
Begin casting Charm Person
Target BBEG
I become visible because targetting the BBEG counts as an attack.
BBEG sees me pop out of thin air, and thinks I am a threat.
BBEG rolls save (and succeeds because he now gets +5)