Fixed dnd roll, closes #1806

This commit is contained in:
Master Kwoth 2017-11-08 06:23:05 +01:00
parent 5d30658b0f
commit 1ef7880f4d

View File

@ -164,11 +164,8 @@ namespace NadekoBot.Modules.Gambling
int.TryParse(match.Groups["n2"].ToString(), out int n2) && int.TryParse(match.Groups["n2"].ToString(), out int n2) &&
n1 <= 50 && n2 <= 100000 && n1 > 0 && n2 > 0) n1 <= 50 && n2 <= 100000 && n1 > 0 && n2 > 0)
{ {
if (!int.TryParse(match.Groups["add"].Value, out int add) || int.TryParse(match.Groups["add"].Value, out int add);
!int.TryParse(match.Groups["sub"].Value, out int sub)) int.TryParse(match.Groups["sub"].Value, out int sub);
{
return;
}
var arr = new int[n1]; var arr = new int[n1];
for (int i = 0; i < n1; i++) for (int i = 0; i < n1; i++)