Fixed Beastforms getting stuck

This commit is contained in:
WBHarry 2025-11-15 13:45:11 +01:00
parent ef0290ae8a
commit 3959c6261d
2 changed files with 3 additions and 5 deletions

View file

@ -257,9 +257,10 @@ export const updateActorTokens = async (actor, update) => {
/* Update the tokens in all scenes belonging to Actor */
for (let token of actor.getDependentTokens()) {
const tokenActor = token.baseActor ?? token.actor;
if (tokenActor?.id === actor.id) {
if (token.id && tokenActor?.id === actor.id) {
await token.update({
...update
...update,
_id: token.id
});
}
}