Skip to content

Commit

Permalink
Update autoColorRing.js
Browse files Browse the repository at this point in the history
Not sure how I got a token without an actor, and this definitely isn't the best fix, but this change made the module stop complaining during play last night. :)
  • Loading branch information
xdy authored Nov 28, 2024
1 parent fa43156 commit 00d2028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/autoColorRing.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function getColorForHealthLevel(level) {
*/
function getSetting(token, typeOrColor, ringOrBackground) {
const actor = token.actor;
const isParty = game.actors.party.members.some((a) => a.id === actor.id);
const isParty = game.actors.party.members.some((a) => a.id === actor?.id);
const type = isParty
? "party"
: {
Expand Down

0 comments on commit 00d2028

Please sign in to comment.