fix sid ketchum

This commit is contained in:
Alberto Xamin 2021-06-24 17:39:51 +02:00
parent e5c629b5e5
commit 843f8ee363
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -285,7 +285,7 @@ export default {
sidScrap(c) { sidScrap(c) {
this.scrapHand.push(this.hand.indexOf(c)) this.scrapHand.push(this.hand.indexOf(c))
if (this.scrapHand.length == 2) { if (this.scrapHand.length == 2) {
let x = [this.hand.indexOf(this.scrapHand[0]), this.hand.indexOf(this.scrapHand[1])].sort().reverse() let x = [this.scrapHand[0], this.scrapHand[1]].sort().reverse()
this.$socket.emit('scrap', x[0]) this.$socket.emit('scrap', x[0])
this.$socket.emit('scrap', x[1]) this.$socket.emit('scrap', x[1])
this.scrapHand = [] this.scrapHand = []