mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-23 16:03:39 +02:00
UpdateActorTokens fix
This commit is contained in:
parent
51bd7c18af
commit
da755ea92a
1 changed files with 2 additions and 2 deletions
|
|
@ -301,8 +301,8 @@ export const updateActorTokens = async (actor, update) => {
|
||||||
/* Update the tokens in all scenes belonging to Actor */
|
/* Update the tokens in all scenes belonging to Actor */
|
||||||
for (let scene of game.scenes) {
|
for (let scene of game.scenes) {
|
||||||
for (let token of scene.tokens) {
|
for (let token of scene.tokens) {
|
||||||
const actor = token.baseActor ?? token.actor;
|
const tokenActor = token.baseActor ?? token.actor;
|
||||||
if (actor?.id === actor.id) {
|
if (tokenActor?.id === actor.id) {
|
||||||
await token.update(update);
|
await token.update(update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue