diff --git a/src/module/globals.js b/src/module/globals.js index 283eb00..928b5c5 100644 --- a/src/module/globals.js +++ b/src/module/globals.js @@ -1,5 +1,3 @@ -/* globals coreFearDialog */ -/* globals swpfFearDialog */ export const moduleName = 'swade-mb-helpers'; export function log(...args) { @@ -72,9 +70,9 @@ export class moduleHelpers { static get fearTableHelper() { switch (moduleHelpers.rulesVersion) { case 'swade': - return coreFearDialog; // defined as global by the swade module + return game.swadeCore.macros.coreFearDialog; // defined as global by the swade module case 'swpf': - return swpfFearDialog; // defined as global by the swpf module + return game.swpfCore.macros.coreFearDialog; // defined as global by the swpf module } throw new ReferenceError('No premium module active. No fear table found'); }