Skip to content

Commit

Permalink
Fix QAED12345678
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed May 4, 2018
1 parent 64be28a commit 3caf15a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/Match.js
Expand Up @@ -556,13 +556,13 @@ module.exports = connect(({user}) => ({user}))(class Match extends React.Compone
} else if (~(chi = 'SW'.indexOf(ch))) {
this.playerClick(chi);
} else if (~(chi = "QA".indexOf(ch))) {
const { shield } = game.players(chi);
const { shield } = this.props.game.players(chi);
if (shield) this.thingClick(shield);
} else if (~(chi = "ED".indexOf(ch))) {
const { weapon } = game.players(chi);
const { weapon } = this.props.game.players(chi);
if (weapon) this.thingClick(weapon);
} else if (~(chi = "12345678".indexOf(ch))) {
const card = game.player1.hand[chi];
const card = this.props.game.player1.hand[chi];
if (card) this.thingClick(card);
} else
return;
Expand Down

0 comments on commit 3caf15a

Please sign in to comment.