From c69013ca0fafc1e248a11baa95cef8e2ec1936d8 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 5 Aug 2010 09:28:22 +0200 Subject: UNO!: prevent a challenge after a pick after a W+4 --- data/rbot/plugins/games/uno.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data') diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index e619027c..4eab72c2 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -544,6 +544,10 @@ class UnoGame } deal(p, @picker) @picker = 0 + # make sure that if this is the "pick and pass" after a W+4, + # then the following player cannot do a challenge: + @last_discard = nil + @last_color = nil else if @player_has_picked announce _("%{p} passes turn") % { :p => p } -- cgit v1.2.3