Current Target Save & Action without roll chat message

This commit is contained in:
Dapoolp 2025-08-02 20:56:42 +02:00
parent 74df2c4e87
commit b31c14bf76
14 changed files with 224 additions and 205 deletions

View file

@ -2,17 +2,4 @@ import DHBaseAction from './baseAction.mjs';
export default class DHEffectAction extends DHBaseAction {
static extraSchemas = [...super.extraSchemas, 'effects', 'target'];
async trigger(event, data) {
if (this.effects.length) {
const cls = getDocumentClass('ChatMessage'),
msg = {
type: 'applyEffect',
user: game.user.id,
system: data
};
return await cls.create(msg);
} else this.toChat(this.id);
}
}