Skip to content

Commit

Permalink
Update sanctuary.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk123999 committed Mar 9, 2023
1 parent 416d7c5 commit a8571d4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/macros/spells/sanctuary.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit a8571d4

Please sign in to comment.