execute if entity @s[tag=basic] run scoreboard players set @e[distance=..1.1,tag=!unspellable,type=!#no_interaction_p] damage 500
execute if entity @s[tag=better] run scoreboard players set @e[distance=..1.1,tag=!unspellable,type=!#no_interaction_p] damage 1000
kill @s