summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-09 22:24:40 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-09 22:24:40 +0200
commit17f0df8d5ad664ebce6076038eb0472080e9e339 (patch)
tree308a20e0924a28986426193c0fd019377b803bb5
parent1e41b1496490a9cd9d97b9196b65f162397570df (diff)
uno plugin: sort dealt cards too
-rw-r--r--data/rbot/plugins/games/uno.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index d3b6cbf8..877d95c4 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -476,6 +476,7 @@ class UnoGame
end
end
end
+ picked.sort!
notify player, _("You picked %{picked}") % { :picked => picked.join(' ') }
player.cards += picked
player.cards.sort!