We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9470c33 commit f0708deCopy full SHA for f0708de
CHANGELOG.md
@@ -1,3 +1,6 @@
1
+# 0.9.1
2
+- Fix token img update when regenerating character.
3
+
4
# 0.9.0
5
- Create round token images for all character portraits, and use in generator.
6
module/generator.js
@@ -17,10 +17,12 @@ export const regenerateCharacter = async (actor) => {
17
await actor.createEmbeddedDocuments("Item", char.items);
18
await maybeGiveStartingBonus(actor);
19
// update any actor tokens in the scene, too
20
+ console.log(actor);
21
for (const token of actor.getActiveTokens()) {
22
+ console.log(token);
23
await token.document.update({
- img: actor.data.img,
- name: actor.name,
24
+ img: actor.data.token.img,
25
+ name: actor.name
26
});
27
}
28
};
0 commit comments