conditions for player choosing not working correctly

so i lost my code yesterday and tried coding back what i lost, but the heck!? @a[] conditions aren't working, like at all, when i write them in command they work so it can't be the command itself (tried with as @p or @e[type=wither] in the last execute in the attack command, but still didnt work
Continue to help post