mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Added all Secondary Weapons
This commit is contained in:
parent
6b98c19742
commit
fd59a8f76e
56 changed files with 6127 additions and 40 deletions
|
|
@ -307,7 +307,7 @@ export function updateLinkedItemApps(options, sheet) {
|
|||
export const itemAbleRollParse = (value, actor, item) => {
|
||||
if (!value) return value;
|
||||
|
||||
const isItemTarget = value.toLowerCase().startsWith('item.');
|
||||
const isItemTarget = value.toLowerCase().replace('item.@', '@');
|
||||
const slicedValue = isItemTarget ? value.slice(5) : value;
|
||||
try {
|
||||
return Roll.replaceFormulaData(slicedValue, isItemTarget ? item : actor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue