How to apply potion effects only in a certain radius, without applying it to yourself?
Solution 1:
You can use type=!player
to exclude players.
If you want to only exclude yourself, this works:
/execute as @e[distance=..<distance>] unless entity @s[name=<your name here>] run effect give <effect>