Merge branch 'dev' into main
This commit is contained in:
commit
4223badeb6
@ -291,7 +291,7 @@ class Player:
|
||||
elif self.pending_action == PendingAction.RESPOND:
|
||||
did_respond = False
|
||||
for i in range(len(self.hand)):
|
||||
if self.hand[i].can_be_used_now and self.hand[i].name in self.expected_response:
|
||||
if self.hand[i].can_be_used_now and (self.hand[i].name in self.expected_response or self.character.check(self.game, chd.ElenaFuente)):
|
||||
self.respond(i)
|
||||
did_respond = True
|
||||
break
|
||||
@ -709,8 +709,6 @@ class Player:
|
||||
self.expected_response = self.game.deck.mancato_cards.copy()
|
||||
if self.character.check(self.game, chars.CalamityJanet) and cs.Bang(0, 0).name not in self.expected_response:
|
||||
self.expected_response.append(cs.Bang(0, 0).name)
|
||||
elif self.character.check(self.game, chd.ElenaFuente):
|
||||
self.expected_response = self.game.deck.all_cards_str.copy()
|
||||
self.on_failed_response_cb = self.take_damage_response
|
||||
self.notify_self()
|
||||
|
||||
@ -739,8 +737,6 @@ class Player:
|
||||
self.expected_response = self.game.deck.mancato_cards.copy()
|
||||
if self.character.check(self.game, chars.CalamityJanet) and cs.Bang(0, 0).name not in self.expected_response:
|
||||
self.expected_response.append(cs.Bang(0, 0).name)
|
||||
elif self.character.check(self.game, chd.ElenaFuente):
|
||||
self.expected_response = self.game.deck.all_cards_str.copy()
|
||||
self.on_failed_response_cb = self.take_no_damage_response
|
||||
self.notify_self()
|
||||
|
||||
@ -779,8 +775,6 @@ class Player:
|
||||
self.expected_response = self.game.deck.mancato_cards_not_green_or_blue.copy()
|
||||
elif self.character.check(self.game, chars.CalamityJanet) and cs.Bang(0, 0).name not in self.expected_response:
|
||||
self.expected_response.append(cs.Bang(0, 0).name)
|
||||
elif self.character.check(self.game, chd.ElenaFuente):
|
||||
self.expected_response = self.game.deck.all_cards_str.copy()
|
||||
if not no_dmg:
|
||||
self.on_failed_response_cb = self.take_damage_response
|
||||
else:
|
||||
@ -876,7 +870,7 @@ class Player:
|
||||
if self.pending_action != PendingAction.RESPOND: return
|
||||
self.pending_action = PendingAction.WAIT
|
||||
if hand_index != -1 and hand_index < (len(self.hand)+len(self.equipment)) and (
|
||||
((hand_index < len(self.hand) and self.hand[hand_index].name in self.expected_response)) or
|
||||
((hand_index < len(self.hand) and self.hand[hand_index].name in self.expected_response) or self.character.check(self.game, chd.ElenaFuente)) or
|
||||
(hand_index-len(self.hand) < len(self.equipment) and self.equipment[hand_index-len(self.hand)].name in self.expected_response)):
|
||||
card = self.hand.pop(hand_index) if hand_index < len(self.hand) else self.equipment.pop(hand_index-len(self.hand))
|
||||
if self.character.check(self.game, chd.MollyStark) and hand_index < len(self.hand)+1 and not self.is_my_turn and self.event_type != 'duel':
|
||||
|
@ -241,7 +241,7 @@ export default {
|
||||
icon: '❌',
|
||||
is_equipment: true,
|
||||
}]
|
||||
this.hand.filter(x => x.can_be_used_now && this.expected_response.indexOf(x.name) !== -1).forEach(x=>{
|
||||
this.hand.filter(x => x.can_be_used_now && (this.expected_response.indexOf(x.name) !== -1 || this.character.name === "Elena Fuente")).forEach(x=>{
|
||||
cc.push(x)
|
||||
})
|
||||
this.equipment.filter(x => x.usable_next_turn && x.can_be_used_now && this.expected_response.indexOf(x.name) !== -1).forEach(x=>{
|
||||
|
@ -312,7 +312,7 @@
|
||||
},
|
||||
"Jesse Jones": {
|
||||
"name": "Jesse Jones",
|
||||
"desc": "When he has to draw his cards, he may draw the first card from the hand of another player. (click on the enemy player if you want to use the ability)"
|
||||
"desc": "When he has to draw his cards, he may draw the first card from the hand of another player. (click on the enemy player's card's if you want to use the ability)"
|
||||
},
|
||||
"Jourdonnais": {
|
||||
"name": "Jourdonnais",
|
||||
|
@ -312,7 +312,7 @@
|
||||
},
|
||||
"Jesse Jones": {
|
||||
"name": "Jesse Jones",
|
||||
"desc": "All'inizio del suo turno, quando deve pescare, può prendere la prima carta a caso dalla mano di un giocatore e la seconda dal mazzo. (clicca sul giocatore avversario se vuoi usare l'abilità)"
|
||||
"desc": "All'inizio del suo turno, quando deve pescare, può prendere la prima carta a caso dalla mano di un giocatore e la seconda dal mazzo. (clicca sulle carte del giocatore avversario se vuoi usare l'abilità)"
|
||||
},
|
||||
"Jourdonnais": {
|
||||
"name": "Jourdonnais",
|
||||
|
Loading…
Reference in New Issue
Block a user