Go back to 5e - Spell Effects.
☄️5e - Spell Target☄️
A typical spell requires the caster to pick one or more targets to be affected by the spell’s magic. A spell’s description says whether the spell targets creatures, objects, or something else.
A Clear Path to the Target: To target something with a spell, a caster must have a clear path to it, so it can’t be behind 🏔️Total Cover.
Targeting Yourself: If a spell targets a creature of your choice, you can choose yourself unless the creature must be Hostile or specifically a creature other than you.
Areas of Effect: Some spells, such as ☄️Thunderwave, cover an area called an 💥Area of Effect. The area determines what the spell targets. The description of a spell specifies whether it has an area of effect, which is typically one of these shapes: 💥Cone, 💥Cube, 💥Cylinder, 💥Emanation, 💥Line, 💥Sphere.

Awareness of Being Targeted: Unless a spell has a perceptible effect, a creature doesn’t know it was targeted by the spell. An effect like lightning is obvious, but a more subtle effect, such as an attempt to read thoughts, goes unnoticed unless a spell’s description says otherwise.
Invalid Targets: If you cast a spell on someone or something that can’t be affected by it, nothing happens to that target, but if you used a spell slot to cast the spell, the slot is still expended.
If the spell normally has no effect on a target that succeeds on a 🎲Save, the invalid target appears to have succeeded on its saving throw, even though it didn’t attempt one (giving no hint that the creature is an invalid target). Otherwise, you perceive that the spell did nothing to the target.
Quelle
Quelle/Inspiration
Player’s Handbook 2024
AOE Art: Richard Whitters