Add a generic ActiveEffect class + proxy

This commit is contained in:
Oliver-Akins 2024-04-20 22:08:23 -06:00
parent 8aff8b0fda
commit cfaed0d230
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,7 @@
export class DotDungeonActiveEffect extends ActiveEffect {
// Invert the logic of the disabled property so it's easier to modify via
// embedded controls
get enabled() { return !this.disabled };
set enabled(newValue) { this.disabled = !newValue };
};