Created
January 29, 2022 12:47
-
-
Save palikhov/6d2f9c64fc90bdcde9f8972e884b1cc1 to your computer and use it in GitHub Desktop.
Foundry - Macros delete temporary effects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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