We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e520807 commit d956655Copy full SHA for d956655
src/combat/combat.js
@@ -427,11 +427,13 @@ export default class YearZeroCombat extends Combat {
427
}
428
429
static async #removeSlowAndFastActions(token) {
430
- return Promise.all([
+ const effects = [
431
STATUS_EFFECTS.FAST_ACTION,
432
STATUS_EFFECTS.SLOW_ACTION,
433
STATUS_EFFECTS.SINGLE_ACTION,
434
- ].map(async effect =>
+ ].filter(action => CONFIG.statusEffects.find(e => e.id === action));
435
+
436
+ return Promise.all(effects.map(async effect =>
437
await token.toggleActiveEffect({ id: effect }, { active: false }),
438
));
439
0 commit comments