Using token destinations instead of their current location for calculation range

This commit is contained in:
nsalyzyn 2025-12-17 11:48:30 -07:00
parent a7abc589f2
commit 6df3920efb

View file

@ -269,9 +269,8 @@ const updateActorsRangeDependentEffects = async (token) => {
}
const distanceBetween = canvas.grid.measurePath([
// TODO: missing { ...movedToken.toObject(), x: data.destination.x, y: data.destination.y }
userTarget.document,
token
userTarget.document.movement.destination,
token.movement.destination
]).distance;
const distance = rangeMeasurement[range];