update with new matt macro for status detection
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "hasEffect",
|
||||
"type": "script",
|
||||
"_id": "xLuOWsKg7NzeVLMz",
|
||||
"author": "sVoCvBU1knmXzoYe",
|
||||
"img": "icons/magic/symbols/circled-gem-pink.webp",
|
||||
"scope": "global",
|
||||
"command": "const effectName = args[0].toLowerCase()\nconst hasEffect = (token.actor.effects.filter(e => e.name.toLowerCase().startsWith(effectName)).length > 0)\nreturn { hasEffect: hasEffect ? 'hasEffect' : 'noEffect' }",
|
||||
"folder": null,
|
||||
"sort": 0,
|
||||
"ownership": {
|
||||
"default": 0,
|
||||
"sVoCvBU1knmXzoYe": 3
|
||||
},
|
||||
"flags": {},
|
||||
"_stats": {
|
||||
"systemId": "swade",
|
||||
"systemVersion": "3.3.3",
|
||||
"coreVersion": "11.315",
|
||||
"createdTime": 1709168972541,
|
||||
"modifiedTime": 1709169248584,
|
||||
"lastModifiedBy": "sVoCvBU1knmXzoYe"
|
||||
},
|
||||
"_key": "!macros!xLuOWsKg7NzeVLMz"
|
||||
}
|
||||
Reference in New Issue
Block a user