Add 1 unstable card. Fix dice roll (was only returning '0-(n-1)')

This commit is contained in:
spjspj 2017-12-12 00:08:37 +11:00
parent 824a001042
commit 7c855990c9
5 changed files with 95 additions and 2 deletions

View file

@ -2344,7 +2344,7 @@ public abstract class PlayerImpl implements Player, Serializable {
*/
@Override
public int rollDice(Game game, ArrayList<UUID> appliedEffects, int numSides) {
int result = RandomUtil.nextInt(numSides);
int result = RandomUtil.nextInt(numSides) + 1;
if (!game.isSimulation()) {
game.informPlayers("[Roll a dice] " + getLogName() + " rolled a " + result + " on a " + numSides + " sided dice");
}