From 30ddc82becc5fde75f95b1f395bd66d1de4c09a3 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 9 Apr 2008 22:02:00 +0200 Subject: uno plugin: fix playing cards after a Reverse after a +something --- data/rbot/plugins/games/uno.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index 8db3c7fe..56a7b99c 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -263,6 +263,7 @@ class UnoGame end if card.picker > 0 @picker += card.picker + @last_picker = @discard.picker end if card.special? @special = true @@ -283,7 +284,7 @@ class UnoGame # the correct color # TODO make optional if @picker > 0 - if (card.value == 'Reverse' and card.color == @color) or card.picker >= @discard.picker + if (card.value == 'Reverse' and card.color == @color) or card.picker >= @last_picker return true else return false -- cgit v1.2.3