Avoid error when backing out of action (#1813)

This commit is contained in:
Carlos Fernandez 2026-04-18 17:31:56 -04:00 committed by GitHub
parent 4b92001f97
commit 4944722139
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ export default class DHAttackAction extends DHDamageAction {
async use(event, options) {
const result = await super.use(event, options);
if (result.message?.system.action.roll?.type === 'attack') {
if (result?.message?.system.action.roll?.type === 'attack') {
const { updateCountdowns } = game.system.api.applications.ui.DhCountdowns;
await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.characterAttack.id);
}