File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { conditions } from "../util/conditions.js" ;
2
+
1
3
export class VaesenActor extends Actor {
2
4
prepareData ( ) {
3
5
super . prepareData ( ) ;
@@ -91,6 +93,13 @@ export class VaesenActor extends Actor {
91
93
}
92
94
}
93
95
96
+ async toggleStatusEffect ( statusId , options ) {
97
+ if ( this . type != "vaesen" )
98
+ return await super . toggleStatusEffect ( statusId , options ) ;
99
+
100
+ await conditions . onVaesenCondition ( this , statusId ) ;
101
+ }
102
+
94
103
async _preCreate ( data , options , user ) {
95
104
await super . _preCreate ( data , options , user ) ;
96
105
@@ -198,7 +207,7 @@ export class VaesenActor extends Actor {
198
207
let changelogArray = this . system . changelog ;
199
208
let documentType = document . type ;
200
209
if ( document . statuses )
201
- documentType = "condition" ;
210
+ documentType = "condition" ;
202
211
203
212
const log = {
204
213
name : document . name ,
You can’t perform that action at this time.
0 commit comments