scoreboard players reset * hastodrawdelay


#stop clickable
event entity @e[type=cero:card] stop_clickable


#hide button
execute @e[tag=button] ~ ~ ~ tp @s ~ 24 ~


#give hastodraw score to player
scoreboard players operation @a[tag=turn] hastodraw = @e[tag=dummy] hastodraw
scoreboard players set @e[tag=dummy] hastodraw 0


#tellraw
tellraw @a {"rawtext": [{"text": "§c"},{"selector": "@a[tag=turn]"},{"text": " is drawing "},{"score":{"name":"@a[tag=turn]","objective":"hastodraw"}},{"text": " cards!"}]}



#check if hastodraw remaining remaining
execute @a[tag=turn,scores={hastodraw=1..}] ~ ~ ~ scoreboard players set @a[tag=turn] hastodrawdelay 0
execute @a[tag=turn,scores={hastodraw=0}] ~ ~ ~ scoreboard players set @a[tag=turn] hastodrawdelay 20