From a8571d4a252daebc4ae0c7cc19bdeba6bcb9bb01 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 9 Mar 2023 00:37:56 -0800 Subject: [PATCH] Update sanctuary.js --- scripts/macros/spells/sanctuary.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/macros/spells/sanctuary.js b/scripts/macros/spells/sanctuary.js index 0cf2d3336..f34b90b46 100644 --- a/scripts/macros/spells/sanctuary.js +++ b/scripts/macros/spells/sanctuary.js @@ -1,6 +1,17 @@ import {chris} from '../../helperFunctions.js'; import {queue} from '../../queue.js'; export async function sanctuary(workflow) { + let invalidTypes = [ + 'cone', + 'cube', + 'cylinder', + 'line', + 'radious', + 'sphere', + 'square', + 'wall' + ]; + if (invalidTypes.includes(workflow.item.system.target.type)) return; if (workflow.targets.size != 1) return; let targetToken = workflow.targets.first(); let targetActor = targetToken.actor;