summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-08-05 09:28:22 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-08-05 09:28:34 +0200
commitc69013ca0fafc1e248a11baa95cef8e2ec1936d8 (patch)
tree376dbc751fe8c2e2894c70dd3ea7dffc9b3e4eb3
parent664c0aa4e4e23b01799b397dd551c3a09bf870bf (diff)
UNO!: prevent a challenge after a pick after a W+4
-rw-r--r--data/rbot/plugins/games/uno.rb4
1 files changed, 4 insertions, 0 deletions
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 }