diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js
index a6d4694..cad0e04 100644
--- a/module/actor/actor-sheet.js
+++ b/module/actor/actor-sheet.js
@@ -157,8 +157,8 @@ export default class DeltaGreenActorSheet extends ActorSheet {
skill.type = "typeSkill";
skill.key = key;
skill.sortLabel = skill.group + "." + skill.label;
-
skill.sortLabel = skill.sortLabel.toUpperCase();
+ skill.actorType = this.actor.type;
if (skill.sortLabel === "" || skill.sortLabel === `DG.Skills.${key}`) {
skill.sortLabel = skill.label;
@@ -172,6 +172,7 @@ export default class DeltaGreenActorSheet extends ActorSheet {
training.type = "training";
training.sortLabel = training.name.toUpperCase();
+ training.actorType = this.actor.type;
sortedCustomSkills.push(training);
}
diff --git a/templates/actor/partials/custom-skills-partial.html b/templates/actor/partials/custom-skills-partial.html
index 1214927..fe2a3fa 100644
--- a/templates/actor/partials/custom-skills-partial.html
+++ b/templates/actor/partials/custom-skills-partial.html
@@ -21,7 +21,7 @@
- {{#if_eq ../actorType "agent"}}
+ {{#if_eq skill.actorType "agent"}}
{{/if_eq}}