A tied local election in California was decided in a peculiar -- but magical -- fashion earlier this month.

According to the New York Post, a 20-sided die from the role-playing game Dungeons & Dragons was used to determine the new Byron-Bethany Irrigation District Director 1.

The tense tiebreaker between incumbent Larry Enos and Milan Petrovich was live-streamed on Facebook on December 7.


WATCH: Body Language Expert Breaks Down Trump-Pelosi-Schumer Showdown


Each candidate was allowed three rolls, and whoever had the highest combined total would be victorious.

The Mercury News reported that Enos won the tiebreaker, defeating Petrovich by a total score of 51 to 45.

"When I’m done, I’m leaving -- win or lose. I won’t have to worry about it. I think this is funny myself," Petrovich reportedly said before walking out after losing on the third role.

According to its website, the Byron-Bethany Irrigation District serves parts of Alameda, Contra Costa and San Joaquin.


Greg Gutfeld Show: What Was Pence Thinking During Trump's Border Meeting?

Liberal Radio Host: Dems Shouldn't Try to Impeach Pres. Trump in New Congress

'This Is Just Crazy': Former NYPD Commissioner Blasts NJ Gov. Over 'Insane' Gun Law