tag @s add temp
execute as @e[type=armor_stand,tag=invis_stand] if score @s real_ID = @e[tag=temp,sort=nearest,limit=1] real_ID run function pctf:logic/player/potion/invisibility/armor
execute unless entity @s[tag=has_flag] run function pctf:logic/player/armor/check
particle entity_effect{color:[1.000,1.000,1.000,1.00]} ~ ~ ~ 0.5 0.5 0.5 0 50 force @a
playsound minecraft:entity.zombie.infect player @a ~ ~ ~ 1 1
effect clear @s invisibility
tag @s remove temp