fix doc holyday
This commit is contained in:
parent
0e9c8ad028
commit
7f0f8bb5c1
@ -973,7 +973,7 @@ class Player:
|
|||||||
self.notify_self()
|
self.notify_self()
|
||||||
|
|
||||||
def holyday_special(self, data):
|
def holyday_special(self, data):
|
||||||
if self.character.check(self.game, chd.DocHolyday) and self.special_use_count < 1:
|
if self.character.check(self.game, chd.DocHolyday) and self.special_use_count < 1 and self.pending_action == PendingAction.PLAY:
|
||||||
self.special_use_count += 1
|
self.special_use_count += 1
|
||||||
cards = sorted(data['cards'], reverse=True)
|
cards = sorted(data['cards'], reverse=True)
|
||||||
for c in cards:
|
for c in cards:
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<button class="btn" v-if="is_my_turn && character.name === 'Sid Ketchum' && lives < max_lives && hand.length > 1" @click="sidWantsScrapForHealth=true">{{$t('special_ability')}}</button>
|
<button class="btn" v-if="is_my_turn && character.name === 'Sid Ketchum' && lives < max_lives && hand.length > 1" @click="sidWantsScrapForHealth=true">{{$t('special_ability')}}</button>
|
||||||
<button class="btn" v-if="is_my_turn && character.name === 'Chuck Wengam' && lives > 1" @click="chuckSpecial">{{$t('special_ability')}}</button>
|
<button class="btn" v-if="is_my_turn && character.name === 'Chuck Wengam' && lives > 1" @click="chuckSpecial">{{$t('special_ability')}}</button>
|
||||||
<button class="btn" v-if="is_my_turn && character.name === 'José Delgado' && special_use_count < 2 && hand.filter(x => x.is_equipment).length > 0" @click="joseScrap=true">{{$t('special_ability')}}</button>
|
<button class="btn" v-if="is_my_turn && character.name === 'José Delgado' && special_use_count < 2 && hand.filter(x => x.is_equipment).length > 0" @click="joseScrap=true">{{$t('special_ability')}}</button>
|
||||||
<button class="btn" v-if="is_my_turn && character.name === 'Doc Holyday' && special_use_count < 1 && hand.length > 1" @click="holydayScrap=true">{{$t('special_ability')}}</button>
|
<button class="btn" v-if="is_my_turn && character.name === 'Doc Holyday' && special_use_count < 1 && hand.length > 1 && pending_action == 2" @click="holydayScrap=true">{{$t('special_ability')}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="lives > 0 || is_ghost" style="position:relative">
|
<div v-if="lives > 0 || is_ghost" style="position:relative">
|
||||||
<span id="hand_text">{{$t('hand')}}</span>
|
<span id="hand_text">{{$t('hand')}}</span>
|
||||||
@ -307,7 +307,7 @@ export default {
|
|||||||
},
|
},
|
||||||
holydayScrapBang(other) {
|
holydayScrapBang(other) {
|
||||||
this.$socket.emit('holyday_special', {
|
this.$socket.emit('holyday_special', {
|
||||||
cards : [this.hand.indexOf(this.scrapHand[0]), this.hand.indexOf(this.scrapHand[1])],
|
cards : [this.scrapHand[0], this.scrapHand[1]],
|
||||||
against: other.name
|
against: other.name
|
||||||
})
|
})
|
||||||
this.scrapHand = []
|
this.scrapHand = []
|
||||||
|
Loading…
Reference in New Issue
Block a user