#give temp tag
tag * remove tempinteract
tag @s remove temp
tag @s add tempinteract



#check if draw card
scoreboard players set @e[tag=dummy] playcompatible 0
execute @e[tag=tempinteract,tag=plus2] ~ ~ ~ scoreboard players set @e[tag=dummy] playcompatible 1
execute @e[tag=tempinteract,tag=plus4] ~ ~ ~ scoreboard players set @e[tag=dummy] playcompatible 1

#fail or succeed functions
execute @e[tag=dummy,scores={playcompatible=0}] ~ ~ ~ execute @e[tag=tempinteract] ~ ~ ~ function card_interact/failed
execute @e[tag=dummy,scores={playcompatible=1}] ~ ~ ~ execute @e[tag=tempinteract,tag=plus2] ~ ~ ~ function card_interact/succeed_drawstack
execute @e[tag=dummy,scores={playcompatible=1}] ~ ~ ~ execute @e[tag=tempinteract,tag=plus4] ~ ~ ~ function card_interact/succeed_drawstack_color


#remove tempinteract tag
tag * remove tempinteract
