Changed initiative rolling so it adds to combat without dialog

This commit is contained in:
kyamsil
2022-04-07 23:03:48 +01:00
parent d3c2c6465d
commit ccacd3e26e

View File

@@ -215,7 +215,7 @@ export class pf2e{
this.checkRoll(`Perception Check`, token.actor.perception, 'perception-check', token.actor);
}
if (roll == 'initiative') {
this.checkRoll(token.actor.attributes?.initiative?.label, token.actor.attributes?.initiative, 'initiative', token.actor);
token.actor.rollInitiative({createCombatants:true, initiativeOptions: {skipDialog: true}});
}
if (roll == 'ability') return; //Ability Checks are not supported in pf2e