Skip to content

Commit

Permalink
Merge pull request #52 from xdy/patch-1
Browse files Browse the repository at this point in the history
Update autoColorRing.js to handle actor-less token
  • Loading branch information
ChasarooniZ authored Nov 28, 2024
2 parents fa43156 + 00d2028 commit a3acffd
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 a3acffd

Please sign in to comment.