Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save palikhov/6d2f9c64fc90bdcde9f8972e884b1cc1 to your computer and use it in GitHub Desktop.
Save palikhov/6d2f9c64fc90bdcde9f8972e884b1cc1 to your computer and use it in GitHub Desktop.
Foundry - Macros delete temporary effects
for (const tkn of canvas.tokens.controlled) {
const removeList = tkn.actor.temporaryEffects.map(e => e.id);
await tkn.actor.deleteEmbeddedDocuments("ActiveEffect", removeList)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment