Fixed checks not having access to #skill

This commit is contained in:
Stefan Zermatten
2022-11-21 13:16:54 +02:00
parent 5108b32624
commit e619734ee1

View File

@@ -28,6 +28,7 @@ const doCheck = new ValidatedMethod({
const creatureId = prop.ancestors[0].id;
const actionContext = new ActionContext(creatureId, [creatureId], this);
Object.assign(actionContext.scope, scope);
actionContext.scope[`#${prop.type}`] = prop;
// Check permissions
assertEditPermission(actionContext.creature, this.userId);