Fix for actor img not linked on token when change

Item class moved out of item's sheets folder
This commit is contained in:
Vlyan
2020-12-21 12:13:21 +01:00
parent f0d2f440e4
commit 3b33dd0c9c
4 changed files with 14 additions and 2 deletions

View File

@@ -57,6 +57,18 @@ export class ActorL5r5e extends Actor {
await super.create(data, options);
}
/**
* Entity-specific actions that should occur when the Entity is updated
* @override
*/
update(data, options = {}) {
// Fix for token image unliked from character... dunno why
if (data.img) {
data["token.img"] = data.img;
}
return super.update(data, options);
}
/** @override */
prepareData() {
super.prepareData();