mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 12:41:07 +01:00
Corrected attackAction countdown automation
This commit is contained in:
parent
f9f2abc484
commit
3465df8a30
1 changed files with 4 additions and 2 deletions
|
|
@ -37,8 +37,10 @@ export default class DHAttackAction extends DHDamageAction {
|
||||||
async use(event, options) {
|
async use(event, options) {
|
||||||
const result = await super.use(event, options);
|
const result = await super.use(event, options);
|
||||||
|
|
||||||
const { updateCountdowns } = game.system.api.applications.ui.DhCountdowns;
|
if (result.message.system.action.roll?.type === 'attack') {
|
||||||
await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.characterAttack.id);
|
const { updateCountdowns } = game.system.api.applications.ui.DhCountdowns;
|
||||||
|
await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.characterAttack.id);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue