Skip to content

Commit

Permalink
Add melee/ranged and damage type to elemental blast roll options (fou…
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosFdez authored Nov 20, 2023
1 parent 8442e3c commit 745c376
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/module/actor/character/elemental-blast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,12 @@ class ElementalBlast {
melee,
damaging: true,
dc: { slug: "ac" },
extraRollOptions: [`action:${actionSlug}`, `action:cost:${actionCost}`],
extraRollOptions: [
`action:${actionSlug}`,
`action:cost:${actionCost}`,
meleeOrRanged,
`item:${meleeOrRanged}`,
],
...eventToRollParams(params.event, { type: "check" }),
});
}
Expand Down Expand Up @@ -384,7 +389,14 @@ class ElementalBlast {
outcome,
melee,
checkContext: params.checkContext,
options: new Set([`action:${actionSlug}`, `action:cost:${actionCost}`, meleeOrRanged, ...item.traits]),
options: new Set([
`action:${actionSlug}`,
`action:cost:${actionCost}`,
meleeOrRanged,
`item:${meleeOrRanged}`,
`item:damage:type:${params.damageType}`,
...item.traits,
]),
});

const baseDamage: BaseDamageData = {
Expand Down

0 comments on commit 745c376

Please sign in to comment.