Fixing roll to work around the new year.

logins
Thomas Hintz 5 years ago
parent 3c553ec34a
commit 653a43c748

@ -1065,7 +1065,10 @@ class Action extends React.Component {
buttons = (<Fragment />);
break;
case 'roll':
view = (<Rolling num={this.props.ui.actionValue.to - this.props.ui.actionValue.from}
const roll = this.props.ui.actionValue.to -
(this.props.ui.actionValue.to < this.props.ui.actionValue.from ?
this.props.ui.actionValue.from - 49 : this.props.ui.actionValue.from);
view = (<Rolling num={roll}
name={this.props.game.currentPlayer}
showScreen={this.props.player.name === this.props.game.currentPlayer
? () => this.props.showNextAction()

Loading…
Cancel
Save