diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-09 21:48:52 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-09 21:48:52 +0200 |
commit | a0be4e1a5d71b55dadf5cf3fa976c784a0581d52 (patch) | |
tree | 77555c82ead17ccac10f8f619268d1351e62b969 | |
parent | 28414ec3a9ea3153a001102241bc1feb46ba4a38 (diff) |
uno plugin: fix endgame with positive picker
-rw-r--r-- | data/rbot/plugins/games/uno.rb | 4 |
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| |