Skip to content

Commit

Permalink
fix minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf authored Mar 24, 2024
1 parent 685f54c commit d30453a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dice/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, msg, dice_code: str):
if self.type <= 0:
raise DiceValueError(msg,
msg.locale.t("dice.message.error.value.n.less_2"),
self.count)
self.type)
if self.type == 1:
raise DiceValueError(msg, msg.locale.t("dice.message.error.value.n.d1"))
if abs(self.adv) > self.count:
Expand Down

0 comments on commit d30453a

Please sign in to comment.