Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
acd-jake committed Jan 4, 2024
2 parents 14e3f63 + 5d5d421 commit f4c89a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/ElevenlabsConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export class ElevenlabsConnector {
voice_id = this.allVoices.filter(obj => { return obj.name === voiceName })[0]?.voice_id;
}
// otherwise check the optional module Yendor's Scene Actors
else if (game.modules.get("yendors-scene-actors") && game.yendorsSceneActors.actorFocusId != null) {
else if (game.modules.get("yendors-scene-actors")
&& game.modules.get("yendors-scene-actors").active
&& game.yendorsSceneActors.actorFocusId != null) {
speakerActor = game.yendorsSceneActors.actorsDetail.find((t) => t._id == game.yendorsSceneActors.actorFocusId)
}
// otherwise get the standard speaking actor
Expand Down

0 comments on commit f4c89a7

Please sign in to comment.