Commits

Anonymous committed b2022b3

Small fixes cherrypicked from Greg Althaus (c75860a8984f):
* Fix a variable mismatch in an info loop.
* Fix a message text to use all the variables (correctly).

Comments (0)

Files changed (2)

domination/cards/prosperity.py

             show_supply_count=True)
         player.prosperity_contraband_cards = getattr(player, "prosperity_contraband_cards", []).append(card_cls)
         for info_player in game.following_participants(player):
-            yield InfoRequest(game, info_player, _("%(player2name)s does not allow %(player2name)s to buy:",
+            yield InfoRequest(game, info_player, _("%(player2name)s does not allow %(playername)s to buy:",
                             {"playername": player.name, "player2name": player.left(game).name}), [card_cls])
 
     @classmethod

domination/cards/seaside.py

         new_card = game.supply[card_cls.__name__].pop()
         player.discard_pile.append(new_card)
 
-        for other_player in game.following_participants(player):
+        for info_player in game.following_participants(player):
             yield InfoRequest(game, info_player,
                     _("%s gains:", (player.name, )), [new_card])
         for val in game.check_empty_pile(card_cls.__name__):