Police say Nix tried to crawl through the doggie door of a Peoria home shortly before 4 a.m.
Police caught Nix and the other man, fellow Padres organization pitcher Thomas Cosgrove, a few block away.
Armed with his stun gun, the husband leaned through the doggy door, took aim and struck Nix in his back, according to the police report.
Cosgrove, a 12th-round pick in 2017, has yet to pitch above the Class-A level. Nix reportedly tried to enter another person's home through the dog door.
Nix was charged with criminal trespassing.
When questioned by cops, Nix said he thought he was entering his own home - although, he admitted his house doesn't have a doggie door.
Online court records show Nix does not yet have an attorney.
Cosgrove appeared in court Tuesday while Nix is due to return to court next Monday, CBS8.com reported.
Nix was assigned to the Peoria Javelinas, an Arizona Fall League team, earlier this month, according to his MLB player page. Cosgrove, plays for the Lake Elsinore Storm, an Advanced A affiliate of the San Diego Padres, according to Minor League Baseball's official site.
Nix was released by authorities with a preliminary hearing scheduled for October 16. Due to the ongoing legal proceedings, we will not have any further comment at this time.
A right-hander selected by the Padres in the third round of the 2015 MLB draft, Nix reached the major leagues previous year, going 2-5 with a 7.02 ERA in nine starts.