Casting spells without attack roll revealing your position is perfectly RAW, inasmuch as the RAW are explicitly DM’s fiat. That’s the general rule. The “if you attack someone you give away your position” clause is the one singular exception to the general rule.
Can you stealthily cast spells 5e?
If you are a sorcerer you can use subtle spell to cast without being noticed, while other casters have no official way to do so. Unless you are being directly observed it makes sense that you would be able to cast some spells without drawing attention to yourself.
What does the spell to reveal secret do?
What are they hiding from you? This spell influences the secrets of others to be revealed to you in many ways.
Can a hidden creature be revealed by a wisdom check?
Even an invisible creature does not automatically count as hidden, as it might give away its position by making noise or producing other “signs of its passage”. As mentioned above, a successful Wisdom (Perception) check will reveal the presence of hidden creatures if the check’s total exceeds the result of the creature’s Dexterity (Stealth) check.
When is an unseen creature is automatically hidden?
Some cases in which the unseen creature is automatically hidden is (as examples): when it is contemporary invisible and in a Silence area of effect, or when the others are contemporary blinded and deafened. A creature with blindsight does not rely on sight, so an invisible creature is not unseen (or heavily obscured) for it.
How do you know the location of an invisible creature?
However, unless an invisible creature (whether invisible by spell, effect, being heavily obscured, or other means) also hides, you can generally know its location by signs of passage or sounds it may make. For more details, the “Hiding” box in PH ph 177 explains a few things (although it could use some more clarity, in my opinion).