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

@ -41,9 +41,6 @@ export default class BeastformField extends fields.SchemaField {
* @param {object} config Object that contains workflow datas. Usually made from Action Fields prepareConfig methods.
*/
static async execute(config) {
// Should not be useful anymore here
await BeastformField.handleActiveTransformations.call(this);
const { selected, evolved, hybrid } = await BeastformDialog.configure(config, this.item);
if (!selected) return false;

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
});
}
}