We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcefeba commit 2565985Copy full SHA for 2565985
scripts/tokens.js
@@ -301,10 +301,8 @@ export function cloneToken(wrapper) {
301
export function createOrRemoveActiveEffectHook(effect, _opts, _userId) {
302
if ( !effect.statuses.has(CONFIG.GeometryLib.proneStatusId) ) return;
303
304
- const actorId = effect.parent?.id;
305
- if ( !actorId ) return;
+ const tokens = effect.parent?.getActiveTokens();
+ if ( !tokens) return;
306
307
- canvas.tokens.placeables
308
- .filter(t => t.actor?.id === actorId)
309
- .forEach(t => t.vision._updateEVShadowData({changedElevation: true}));
+ tokens.forEach(t => t.vision._updateEVShadowData({changedElevation: true}));
310
}
0 commit comments