From 1ef7880f4d3cb3036e1d85f4ba264e97a5cbc9ec Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Wed, 8 Nov 2017 06:23:05 +0100 Subject: [PATCH] Fixed dnd roll, closes #1806 --- NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs b/NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs index c18d78bf..550a9cb9 100644 --- a/NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs +++ b/NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs @@ -164,11 +164,8 @@ namespace NadekoBot.Modules.Gambling int.TryParse(match.Groups["n2"].ToString(), out int n2) && n1 <= 50 && n2 <= 100000 && n1 > 0 && n2 > 0) { - if (!int.TryParse(match.Groups["add"].Value, out int add) || - !int.TryParse(match.Groups["sub"].Value, out int sub)) - { - return; - } + int.TryParse(match.Groups["add"].Value, out int add); + int.TryParse(match.Groups["sub"].Value, out int sub); var arr = new int[n1]; for (int i = 0; i < n1; i++)