From a0be4e1a5d71b55dadf5cf3fa976c784a0581d52 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 9 Apr 2008 21:48:52 +0200 Subject: uno plugin: fix endgame with positive picker --- data/rbot/plugins/games/uno.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins/games/uno.rb') 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| -- cgit v1.2.3