Tested and fixed proficiencies by tag

This commit is contained in:
Stefan Zermatten
2023-05-06 10:45:03 +02:00
parent 9fb85b8c50
commit 4550661a59
5 changed files with 80 additions and 10 deletions

View File

@@ -272,6 +272,9 @@ function linkProficiencies(dependencyGraph, prop, computation) {
// The stats depend on the proficiency
if (prop.inactive) return;
if (prop.targetByTags) {
// Tag targeted proficiencies depend on the creature's proficiencyBonus,
// since they add it directly to the targeted field
dependencyGraph.addLink(prop._id, 'proficiencyBonus', 'skillProficiencyBonus');
getEffectTagTargets(prop, computation).forEach(targetId => {
const targetProp = computation.propsById[targetId];
if (