Can moves like Magic Leaf, Swift, and Aura Sphere- that ignore accuracy and evasion- still execute if your Pokemon is confused?
Yeah same here it's the chance that ur confused and can't hit. Aura Sphere is still guaranteed to hit if it works though.
When a confused Pokemon tries to use those moves, it still has a 1/4 chance of hurting itself. source