diff --git a/css/deltagreen.css b/css/deltagreen.css
index 24a40b0..bcb0e59 100644
--- a/css/deltagreen.css
+++ b/css/deltagreen.css
@@ -1232,3 +1232,7 @@ body:not(.no-theme) #interface:not(.theme-light) .ui-control {
body:not(.no-theme) #interface:not(.theme-light) #action-bar .slot.full:hover {
border: 2px solid #215112;
}
+
+.target-proficiency-mod {
+ color: #247c14;
+}
\ No newline at end of file
diff --git a/module/actor/actor.js b/module/actor/actor.js
index baa5697..d9e0b10 100644
--- a/module/actor/actor.js
+++ b/module/actor/actor.js
@@ -215,6 +215,9 @@ export default class DeltaGreenActor extends Actor {
} else {
skill.isCalculatedValue = false;
}
+
+ // Add field for calculation
+ skill.targetProficiency = skill.proficiency;
}
system.wp.max = system.statistics.pow.value;
diff --git a/module/roll/roll.js b/module/roll/roll.js
index a89fc87..cb39c47 100644
--- a/module/roll/roll.js
+++ b/module/roll/roll.js
@@ -387,7 +387,8 @@ export class DGPercentileRoll extends DGRoll {
localizedKey = game.i18n.localize(`DG.Attributes.${this.key}`);
}
if (skillKeys.includes(this.key)) {
- target = actorData.skills[this.key].proficiency;
+ // use calculated target proficiency (effects and etc like aim + 20%)
+ target = actorData.skills[this.key].targetProficiency || actorData.skills[this.key].proficiency;
localizedKey = game.i18n.localize(`DG.Skills.${this.key}`);
}
if (typedSkillKeys.includes(this.key)) {
diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html
index a9daeac..3679bfc 100644
--- a/templates/actor/actor-sheet.html
+++ b/templates/actor/actor-sheet.html
@@ -127,7 +127,7 @@
{{/if_eq}}
{{#if_not_eq skill.key 'ritual' }}
-
+