1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 00:53:50 -04:00

fix simnom being able to be negative

This commit is contained in:
Ean Milligan
2025-08-05 16:52:12 -04:00
parent de02ebcc09
commit 959fd6e120

View File

@@ -247,5 +247,11 @@ export const getModifiers = (args: string[]): [RollModifiers, string[]] => {
modifiers.valid = false;
}
if (modifiers.simulatedNominal < 0) {
modifiers.error.name = 'NegativeSimNominal';
modifiers.error.message = 'Number of iterations for `simulatedNominal` must be at least 1';
modifiers.valid = false;
}
return [modifiers, args];
};