mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
[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:
parent
fad09a1b3a
commit
822c522f61
18 changed files with 38 additions and 171 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 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