summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/games/uno.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index 90a8ee48..13f39c9b 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -274,6 +274,9 @@ class UnoGame
# a +something of same or higher something, or a Reverse
# TODO make optional
if @picker > 0
+ if card.color and card.color != @color
+ return false
+ end
if card.value == 'Reverse' or card.picker >= @discard.picker
return true
else