Fix defense rolls

This commit is contained in:
2025-02-06 10:28:03 +01:00
parent 42f6674e93
commit 170d3a2874
25 changed files with 75 additions and 71 deletions

View File

@ -34,7 +34,10 @@ export default class LethalFantasyUtils {
return val == null;
});
Handlebars.registerHelper('match', function (val, search) {
return val.match(search);
if ( val && search) {
return val?.match(search);
}
return false
});
Handlebars.registerHelper('exists', function (val) {