diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-21 23:37:04 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-21 23:37:04 +0200 |
commit | 2092b0b165822b09a2fa83aad18bc9d12af753b5 (patch) | |
tree | eed118e9ec224a72eec8a60c859a5c62b55a9c34 /data/rbot/plugins/games | |
parent | 087ff14d6117ef746bfad797a8088a7e6b74d5ac (diff) |
uno plugin: only allow to pick a color after a wild
Diffstat (limited to 'data/rbot/plugins/games')
-rw-r--r-- | data/rbot/plugins/games/uno.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index 131f0673..f77d1c42 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -517,6 +517,13 @@ class UnoGame end def choose_color(user, color) + # you can only pick a color if the current color is unset + if @color + announce _("you can't pick a color now, %{p}") % { + :p => get_player(user) + } + return + end case color when 'r' @color = 'Red' |