tag @s add exclude
execute at @s as @e[distance=..3,tag=!exclude] run damage @s .00001 minecraft:player_attack by @p
tag @s remove exclude
advancement revoke @s only survivalplus:tools/gethit/bounceshield