Update active rulers when the movement history changes

This commit is contained in:
Manuel Vögele
2021-05-05 16:01:13 +02:00
parent 7bed5abd0a
commit e8ab77a62e
6 changed files with 40 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
import {measureDistances} from "./compatibility.js";
import {updateCombatantDragRulerFlags} from "./socket.js";
import {recalculate, updateCombatantDragRulerFlags} from "./socket.js";
import {getTokenShape, zip} from "./util.js";
function initTrackingFlag(combatant) {
@@ -90,4 +90,5 @@ export async function resetMovementHistory(combat, combatantId) {
dragRulerFlags.trackedRound = null;
dragRulerFlags.rulerState = null;
await updateCombatantDragRulerFlags(combat, [{_id: combatantId, dragRulerFlags}]);
recalculate();
}