allow /dr and [[/dr]] to be rolled without selection

This commit is contained in:
psitacus 2025-07-27 14:32:41 -06:00
parent c81c1941a4
commit aea2ef99c0
4 changed files with 22 additions and 13 deletions

View file

@ -202,7 +202,7 @@ Hooks.on('chatMessage', (_, message) => {
: undefined;
const difficulty = rollCommand.difficulty;
const target = getCommandTarget();
const target = getCommandTarget({ allowNull: true });
const title = traitValue
? game.i18n.format('DAGGERHEART.UI.Chat.dualityRoll.abilityCheckTitle', {
ability: game.i18n.localize(SYSTEM.ACTOR.abilities[traitValue].label)