fix bugs
This commit is contained in:
parent
888725a6ec
commit
a85b42d5b5
@ -731,7 +731,7 @@ class Player:
|
||||
target = self.game.get_player_named(self.target_p)
|
||||
card = None
|
||||
if (target.name == self.name):
|
||||
card = self.equipment.pop(card_index)
|
||||
card = self.equipment.pop(card_index if card_index < len(target.hand) else card_index - len(target.hand))
|
||||
elif card_index >= len(target.hand):
|
||||
card = target.equipment.pop(card_index - len(target.hand))
|
||||
else:
|
||||
@ -838,7 +838,7 @@ class Player:
|
||||
self.notify_self()
|
||||
elif 'choose_bandidos' in self.choose_text:
|
||||
if card_index <= len(self.available_cards):
|
||||
self.available_cards.pop(card_index))
|
||||
self.available_cards.pop(card_index)
|
||||
self.game.deck.scrap_pile.append(self.hand.pop(card_index))
|
||||
self.mancato_needed -= 1
|
||||
else:
|
||||
|
@ -138,7 +138,8 @@
|
||||
"gold_rush_pay_discard": "{0} discarded {2} from {1}.",
|
||||
"choose_emporio": "{0} has chosen {1} from General Store.",
|
||||
"shotgun_scrap": "When the shotgun hit {0} a card flew away from his hand ({1})",
|
||||
"taglia_reward": "{1} got a card from the bounty on {0}"
|
||||
"taglia_reward": "{1} got a card from the bounty on {0}",
|
||||
"snake_bit": "{0} was bitten by the Rattle Snake."
|
||||
},
|
||||
"foc": {
|
||||
"leggedelwest": "He must play this card on this turn if possible."
|
||||
|
@ -138,7 +138,8 @@
|
||||
"gold_rush_pay_discard": "{0} ha fatto scartare {2} a {1}.",
|
||||
"choose_emporio": "{0} ha scelto {1} da Emporio.",
|
||||
"shotgun_scrap": "Quando lo shotgun ha colpito {0} gli ha tolto una carta ({1})",
|
||||
"taglia_reward": "{1} ha ottenuto ricompensa dalla taglia su {0}"
|
||||
"taglia_reward": "{1} ha ottenuto ricompensa dalla taglia su {0}",
|
||||
"snake_bit": "{0} è stato morso dal Serpente a Sonagli."
|
||||
},
|
||||
"foc": {
|
||||
"leggedelwest": "Ed è obbligato a usarla nel suo turno, se possibile"
|
||||
|
Loading…
Reference in New Issue
Block a user