[Fix] 1535 - Toggle Bonuses (#1538)

* Fixed all SRD instances of Powerful and Massive

* Fixed suppressed effects being added to roll formula options

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

* .

* .

* Fixed secondary weapons effects

* Raised system version

* Update module/data/action/baseAction.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

* Update module/documents/chatMessage.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
WBHarry 2026-01-16 09:35:02 +01:00 committed by GitHub
parent fad09a1b3a
commit 822c522f61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 38 additions and 171 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 = Array.from(await this.document.allApplicableEffects());
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);
}