Add a generic ActiveEffect class + proxy
This commit is contained in:
parent
8aff8b0fda
commit
cfaed0d230
3 changed files with 51 additions and 0 deletions
7
module/documents/ActiveEffect/GenericActiveEffect.mjs
Normal file
7
module/documents/ActiveEffect/GenericActiveEffect.mjs
Normal 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 };
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue