summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/games/uno.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-09 21:48:52 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-09 21:48:52 +0200
commita0be4e1a5d71b55dadf5cf3fa976c784a0581d52 (patch)
tree77555c82ead17ccac10f8f619268d1351e62b969 /data/rbot/plugins/games/uno.rb
parent28414ec3a9ea3153a001102241bc1feb46ba4a38 (diff)
uno plugin: fix endgame with positive picker
Diffstat (limited to 'data/rbot/plugins/games/uno.rb')
-rw-r--r--data/rbot/plugins/games/uno.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index 0b7f8ba6..8db3c7fe 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -498,11 +498,11 @@ class UnoGame
:uno => UNO, :p => @players.first
}
if @picker > 0
- p = @player[1]
+ p = @players[1]
announce _("%{p} has to pick %{b}%{n}%{b} cards!") % {
:p => p, :n => @picker, :b => Bold
}
- deal(@player[1], @picker)
+ deal(p, @picker)
@picker = 0
end
score = @players.inject(0) do |sum, p|