Skip to content

Commit

Permalink
Merge pull request #50 from Hertzila/main
Browse files Browse the repository at this point in the history
Fixed undefined combatant spamming errors
  • Loading branch information
velara authored Apr 28, 2023
2 parents 426b4ee + 19bbfdb commit 52023c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/movementFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function movementTracking (token){
if (game.combats.active && game.settings.get("pf2e-dragruler", "partialMovements") && game.settings.get("drag-ruler", "enableMovementHistory")){
const combat = game.combats.active
const combatant = combat.getCombatantByToken(token.id);
var moveHistory = combatant.flags?.dragRuler?.passedWaypoints
var moveHistory = combatant?.flags?.dragRuler?.passedWaypoints
if (moveHistory == undefined){
var A1 = baseSpeed;
var A2 = baseSpeed*2;
Expand Down

0 comments on commit 52023c7

Please sign in to comment.