Fix a couple of errors. Make roll dialog verbiage clearer.

This commit is contained in:
Aaron Lutomski
2026-05-30 16:26:08 -07:00
parent e2f722602e
commit e87a3e8ea2
5 changed files with 25 additions and 12 deletions
+8 -1
View File
@@ -6,6 +6,7 @@ import {
} from "../../profession/constants.js";
const { renderTemplate } = foundry.applications.handlebars;
const { ForcedDeletion } = foundry.data.operators;
/**
* @param {string} [selectedGroup]
@@ -39,7 +40,13 @@ export default function TypedSkillMixin(Base) {
});
break;
case "delete":
this.actor.update({ [`system.typedSkills.-=${typedskill}`]: null });
this.actor.update({
system: {
typedSkills: {
[typedskill]: new ForcedDeletion(),
},
},
});
break;
default:
break;