scripts/token-attacher.js
//Attached elements are only allowed to be selected while token attacher ui is open.
Attached elements are only allowed to be selected while token attacher ui is open.
Attached elements are only allowed to be selected while token attacher ui is open .
static isAllowedToControl(object, isControlled){
			let offset = object.document.getFlag(moduleName, 'offset') || {};
			if(Object.keys(offset).length === 0) return;
			let objParent = object.document.getFlag(moduleName, 'parent') || {};
			if(TokenAttacher.isAttachmentUIOpen() && TokenAttacher.isCurrentAttachUITarget(objParent)) return;
			let unlocked = object.document.getFlag(moduleName, 'unlocked');
			if(unlocked) return;
			if(game.user.isGM){
				let quickEdit = getProperty(window, 'tokenAttacher.quickEdit');
				if(quickEdit && canvas.scene.data._id === quickEdit.scene) return;
			}
			return object.release();
		}
static isAllowedToControl ( object , isControlled ) { let offset = object . document . getFlag ( moduleName , 'offset' ) || { } ; if ( Object . keys ( offset ) . length === 0 ) return ; let objParent = object . document . getFlag ( moduleName , 'parent' ) || { } ; if ( TokenAttacher . isAttachmentUIOpen ( ) && TokenAttacher . isCurrentAttachUITarget ( objParent ) ) return ; let unlocked = object . document . getFlag ( moduleName , 'unlocked' ) ; if ( unlocked ) return ; if ( game . user . isGM ) { let quickEdit = getProperty ( window , 'tokenAttacher.quickEdit' ) ; if ( quickEdit && canvas . scene . data . _id === quickEdit . scene ) return ; } return object . release ( ) ; }
Attached elements are only allowed to be selected while token attacher ui is open.
Attached elements are only allowed to be selected while token attacher ui is open .