mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-08 06:56:12 +01:00
Fixed weapon effects being presented when it's no the weapon itself
This commit is contained in:
parent
622d11a1cc
commit
8ebaf7672f
3 changed files with 22 additions and 6 deletions
|
|
@ -158,7 +158,9 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
|||
const config = foundry.utils.deepClone(this.system);
|
||||
config.event = event;
|
||||
if (this.system.action) {
|
||||
await this.system.action.addEffects(config);
|
||||
const actor = await foundry.utils.fromUuid(config.source.actor);
|
||||
const item = actor?.items.get(config.source.item) ?? null;
|
||||
config.effects = await await game.system.api.data.actions.actionsTypes.base.getEffects(actor, item);
|
||||
await this.system.action.workflow.get('damage')?.execute(config, this._id, true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue