mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Using token destinations instead of their current location for calculation range
This commit is contained in:
parent
a7abc589f2
commit
6df3920efb
1 changed files with 2 additions and 3 deletions
|
|
@ -269,9 +269,8 @@ const updateActorsRangeDependentEffects = async (token) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const distanceBetween = canvas.grid.measurePath([
|
const distanceBetween = canvas.grid.measurePath([
|
||||||
// TODO: missing { ...movedToken.toObject(), x: data.destination.x, y: data.destination.y }
|
userTarget.document.movement.destination,
|
||||||
userTarget.document,
|
token.movement.destination
|
||||||
token
|
|
||||||
]).distance;
|
]).distance;
|
||||||
const distance = rangeMeasurement[range];
|
const distance = rangeMeasurement[range];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue