From e619734ee19bb23c237ee53c99395b311648498d Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Mon, 21 Nov 2022 13:16:54 +0200 Subject: [PATCH] Fixed checks not having access to `#skill` --- app/imports/api/engine/actions/doCheck.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/imports/api/engine/actions/doCheck.js b/app/imports/api/engine/actions/doCheck.js index 3673356b..5d9b4164 100644 --- a/app/imports/api/engine/actions/doCheck.js +++ b/app/imports/api/engine/actions/doCheck.js @@ -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);