Anonymous avatar 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__):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.