execute at @a[tag=K] run execute at @e[type=spider,distance=..2.5] run effect give @a[tag=!KyuPI,distance=..2.5,scores={KyuDamageTaken=1..}] poison 2 5
scoreboard players set @a[tag=K] KyuDamageTaken 0