Update the movement tracking flags in the GM client, becauase the user isn't allowed to modify them

This commit is contained in:
Manuel Vögele
2021-04-14 15:40:59 +02:00
parent 9787a41fd1
commit f7683e8945
3 changed files with 28 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import {measureDistances} from "./compatibility.js";
import {updateCombatantDragRulerFlags} from "./socket.js";
import {getTokenShape} from "./util.js";
function initTrackingFlag(combatant) {
@@ -54,7 +55,7 @@ export async function trackRays(token, rays) {
waypoints.push(ray.A);
}
}
await combat.updateEmbeddedEntity("Combatant", {_id: combatant._id, flags: combatant.flags}, {diff: false});
await updateCombatantDragRulerFlags(combat, combatant, dragRulerFlags);
}
export function getMovementHistory(token) {