Fix lethargy + charaster race
All checks were successful
Release Creation / build (release) Successful in 1m7s

This commit is contained in:
2025-04-06 23:16:30 +02:00
parent b029aba2b6
commit 9035ad4bfb
26 changed files with 105 additions and 89 deletions

View File

@ -39,7 +39,7 @@ export default class LethalFantasyUtils {
return val == null;
});
Handlebars.registerHelper('match', function (val, search) {
if ( val && search) {
if (val && search) {
return val?.match(search);
}
return false
@ -193,4 +193,12 @@ export default class LethalFantasyUtils {
}
static getLethargyDice(level) {
for (let s of SYSTEM.SPELL_LETHARGY_DICE) {
if (Number(level) <= s.maxLevel) {
return s.dice
}
}
}
}