Patryn of Elvenshae said:That doesn't work, I'm afraid, barring some pretty scary szizo .. schizo ... craziness.
Otherwise, what prevents you from saying, "I'm casting this fireball into that mass of orcs over there. I don't really think of them as foes, so much as friends I just haven't met yet. So, I stay invisible, right?"
No one would let that fly, I imagine ...![]()
Actually, it does work, but it is dependent on the DM adjudicating properly.
If the PC casts a "harmful" spell with anyone in the area, then the DM should rule that the PC decided someone was his foe.
If the PC casts a "harmless" spell with anyone in the area, then the DM should adjudicate (for the player) whether anyone in that area is a foe or not. He should do this based on his concept of whether the PC should think that someone in the area is a foe, not on whether someone in the area IS a foe to the PC (i.e. is hostile to the PC, but the PC does not know it).
Enemy and friend are very loosely defined in DND.
So, in order to follow the "For purposes of this spell, an attack includes any spell targeting a foe or whose area or effect includes a foe. (Exactly who is a foe depends on the invisible character's perceptions)" rule, you basically decide as DM that if it is an "offensive" spell, the PC autotmatically made someone his enemy. If the spell is not offensive, you as DM decide if the PC thought that someone was an enemy. If so, he becomes visible. If not, he does not.