Skip to content

Commit 0598246

Browse files
committed
fix: restore the ability to have empty move detail
1 parent 052ed37 commit 0598246

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/module/actor/entity.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ export default class OseActor extends Actor {
2626
source.prototypeToken.texture.img = "icons/svg/mystery-man.svg";
2727
}
2828
// Fixing missing movement.value by moving it to details.movement
29-
if (source?.system?.movement?.value && !source?.system?.details.movement)
29+
if (source?.system?.movement?.value && !source?.system?.details.movement){
3030
source.system.details.movement = source.system.movement.value;
31+
delete source.system.movement.value;
32+
}
3133

3234
return source;
3335
}

0 commit comments

Comments
 (0)