"Power Rangers Samurai" actor Ricardo Medina has pleaded guilty to killing his roommate with a sword.

Medina, 38, entered a plea Thursday in Los Angeles County Superior Court to voluntary manslaughter.

He is facing six years in state prison.

Medina had been charged with murder and faced 26 years to life in prison if convicted on that charge.

Prosecutors say Medina stabbed Joshua Sutter in the abdomen with a sword two years ago at their house in Green Valley, a mountain town north of Los Angeles.

The two had argued over Medina's girlfriend and Medina initially claimed the stabbing was in self defense.

FOLLOW US ON FACEBOOK FOR MORE FOX ENTERTAINMENT NEWS.

In addition to his fatal abdominal wound, the autopsy showed Sutter had sustained sharp force injuries, including hand injuries consistent with defensive wounds.

Sutter’s sister Rachel Kennedy told local TV that her brother would have been 38 on Thursday.

Medina played the Red Lion Wild Force Ranger on "Power Rangers Wild Force" in 2002, and he was the voice of Deker on "Power Rangers Samurai" in 2011 and 2012.

The Associated Press contributed to this report.