Fixed weapon effects being presented when it's no the weapon itself

This commit is contained in:
WBHarry 2026-01-15 14:57:42 +01:00
parent 622d11a1cc
commit 8ebaf7672f
3 changed files with 22 additions and 6 deletions

View file

@ -505,7 +505,10 @@ export default function DHApplicationMixin(Base) {
const doc = await getDocFromElement(target),
action = doc?.system?.attack ?? doc;
const config = action.prepareConfig(event);
config.effects = await game.system.api.data.actions.actionsTypes.base.getEffects(this.document);
config.effects = await game.system.api.data.actions.actionsTypes.base.getEffects(
this.document,
doc
);
config.hasRoll = false;
return action && action.workflow.get('damage').execute(config, null, true);
}