mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01: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 */
|
||||
for (let scene of game.scenes) {
|
||||
for (let token of scene.tokens) {
|
||||
const actor = token.baseActor ?? token.actor;
|
||||
if (actor?.id === actor.id) {
|
||||
const tokenActor = token.baseActor ?? token.actor;
|
||||
if (tokenActor?.id === actor.id) {
|
||||
await token.update(update);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue