mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Added to compendium
This commit is contained in:
parent
1ba08e2f51
commit
eea1b6e6b8
6 changed files with 184 additions and 60 deletions
|
|
@ -21,12 +21,14 @@ export class EffectConditionals extends foundry.data.fields.ArrayField {
|
|||
x => !x.disabled && x.statuses.has(conditional.key)
|
||||
);
|
||||
if (!hasStatus) return true;
|
||||
break;
|
||||
case CONFIG.DH.GENERAL.activeEffectConditionalType.attribute.id:
|
||||
const actorValue = foundry.utils.getProperty(actor, conditional.key);
|
||||
const conditionalValue = game.system.api.documents.DhActiveEffect.effectSafeEval(
|
||||
itemAbleRollParse(conditional.value, actor)
|
||||
);
|
||||
if (!compareValues(actorValue, conditionalValue, conditional.comparator)) return true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue