From 4daa83b9ebf896da5bb24bd7b7ff1866dcf98cb2 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 9 Dec 2010 11:41:07 +0100 Subject: UNO!: when the game hasn't started, it's nobody's turn --- data/rbot/plugins/games/uno.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index c689c253..75154362 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -605,6 +605,12 @@ class UnoGame end def show_turn(opts={}) + if @players.empty? + announce _("nobody is playing %{uno} yet!") % { + :uno => UNO + } + return false + end cards = true cards = opts[:cards] if opts.key?(:cards) player = @players.first -- cgit v1.2.3