puckipedia/CardsAgainstIRC

Choosing wrong amount of cards still counts it?

puckipedia opened this issue · 1 comments

< :Evermore!~ircuser@unaffiliated/lulzfish-4/x-1415764 PRIVMSG ###cards :!card 1
> NOTICE Evermore :​Invalid int!
< :puckipedia!puck@irc.puckipedia.com PRIVMSG ###cards :heddwch: myself?
< :olsner!~salparot@c83-252-193-184.bredband.comhem.se PRIVMSG ###cards :!card 6 1
> NOTICE olsner :​You have chosen: It puts the [Land mines.] on its skin or else it gets the [Chainsaws for hands.] again.
< :heddwch!~heddwch@76.8.3.189 PRIVMSG ###cards :Who are you asking that?
> PRIVMSG ###cards :​19 seconds to go!
< :heddwch!~heddwch@76.8.3.189 PRIVMSG ###cards :!status
> PRIVMSG ###cards :​heddwch: Waiting for Evermore to choose
< :puckipedia!puck@irc.puckipedia.com PRIVMSG ###cards :hey, it didn't crash
< :nortti!~nortti@91-145-124-184.bb.dnainternet.fi PRIVMSG ###cards :yaay
< :puckipedia!puck@irc.puckipedia.com PRIVMSG ###cards :Evermore: two
< :heddwch!~heddwch@76.8.3.189 PRIVMSG ###cards :s/Evermore/Everslow/
> PRIVMSG ###cards :​Timeout reached! Evermore - 1 point
> PRIVMSG ###cards :​Everyone has chosen! The card sets are: (heddwch - your time to choose)
> PRIVMSG ###cards :​0. It puts the [idling] on its skin or else it gets the [esoterrorism] again.
> PRIVMSG ###cards :​An exception occured, trying to recover...
System.IndexOutOfRangeException: Array index is out of range.
  at CardsAgainstIRC3.Game.Card.Representation (IEnumerable`1 cards) [0x00000] in <filename unknown>:0
  at CardsAgainstIRC3.Game.States.CzarVote.Activate () [0x00000] in <filename unknown>:0
  at CardsAgainstIRC3.Game.GameManager.StartState (CardsAgainstIRC3.Game.State state) [0x00000] in <filename unknown>:0
  at CardsAgainstIRC3.Game.States.ChoosingCards.TimeoutReached () [0x00000] in <filename unknown>:0
  at CardsAgainstIRC3.Game.States.Base.Tick () [0x00000] in <filename unknown>:0
  at CardsAgainstIRC3.Game.GameManager.Runloop () [0x00000] in <filename unknown>:0

(Added !debug command to help debug it)