mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Add 1 unstable card. Fix dice roll (was only returning '0-(n-1)')
This commit is contained in:
parent
824a001042
commit
7c855990c9
5 changed files with 95 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue