playsound minecraft:entity.firework_rocket.blast player @a ~ ~ ~ 1 0
particle minecraft:smoke ~ ~0.25 ~ 0 0.25 0 0.05 500

execute if entity @s[tag=blue] as @a[team=red,distance=..2,tag=!invis_temp] at @s run function pctf:logic/items/trap_kit/damage
execute if entity @s[tag=red] as @a[team=blue,distance=..2,tag=!invis_temp] at @s run function pctf:logic/items/trap_kit/damage

kill @s