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:
@@ -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];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user