mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Update module/documents/chatMessage.mjs
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
parent
c5e4dd52cb
commit
c0db98b203
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
||||||
if (this.system.action) {
|
if (this.system.action) {
|
||||||
const actor = await foundry.utils.fromUuid(config.source.actor);
|
const actor = await foundry.utils.fromUuid(config.source.actor);
|
||||||
const item = actor?.items.get(config.source.item) ?? null;
|
const item = actor?.items.get(config.source.item) ?? null;
|
||||||
config.effects = await await game.system.api.data.actions.actionsTypes.base.getEffects(actor, item);
|
config.effects = await game.system.api.data.actions.actionsTypes.base.getEffects(actor, item);
|
||||||
await this.system.action.workflow.get('damage')?.execute(config, this._id, true);
|
await this.system.action.workflow.get('damage')?.execute(config, this._id, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue