Skip to content

Commit 810f2ac

Browse files
authored
Merge pull request #125 from fvtt-fria-ligan/fix/vaesen-conditions-v12
🐛 Fix conditions for Vaesen on v12
2 parents 2e7d675 + 25b5991 commit 810f2ac

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: script/actor/vaesen.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { conditions } from "../util/conditions.js";
2+
13
export class VaesenActor extends Actor {
24
prepareData() {
35
super.prepareData();
@@ -91,6 +93,13 @@ export class VaesenActor extends Actor {
9193
}
9294
}
9395

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+
94103
async _preCreate(data, options, user) {
95104
await super._preCreate(data, options, user);
96105

@@ -198,7 +207,7 @@ export class VaesenActor extends Actor {
198207
let changelogArray = this.system.changelog;
199208
let documentType = document.type;
200209
if (document.statuses)
201-
documentType = "condition";
210+
documentType = "condition";
202211

203212
const log = {
204213
name: document.name,

0 commit comments

Comments
 (0)