Enhance progression rolls, damage rolls and other fixes
Some checks failed
Release Creation / build (release) Failing after 56s
Some checks failed
Release Creation / build (release) Failing after 56s
This commit is contained in:
@ -178,7 +178,17 @@ export default class CthulhuEternalUtils {
|
||||
const html = options.fn(this);
|
||||
return html.replace(rgx, "$& selected");
|
||||
});
|
||||
}
|
||||
|
||||
static async damageRoll(rollMessage) {
|
||||
let rollData = rollMessage.rolls[0]?.options?.rollData
|
||||
let actor = game.actors.get(rollData.actorId)
|
||||
if (!actor) {
|
||||
ui.notifications.error(game.i18n.localize("CTHULHUETERNAL.Label.noActorFound"))
|
||||
return
|
||||
}
|
||||
rollData.weapon.resultType = rollData.resultType // Keep the result type from the roll message
|
||||
actor.system.roll("damage", rollData.weapon)
|
||||
}
|
||||
|
||||
static async nudgeRoll(rollMessage) {
|
||||
|
Reference in New Issue
Block a user