scoreboard players remove @s generic_timer 1

scoreboard players set @s generic_timer2 20
execute if score @s generic_timer matches 1.. run function pctf:logic/items/scrolls/shadow_burst/loop

execute if score @s generic_timer matches 0 run function pctf:logic/items/scrolls/shadow_burst/detonate