Skip to content

Commit

Permalink
PF2e familiar skills and other safeguards 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Jan 22, 2022
1 parent 5e4aa74 commit 061771d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/SystemProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ export class pf2eProvider extends SystemProvider {
Handlebars.registerHelper("partyOverviewGetSkillList", function (skill, actors, opt) {
return actors
.filter((actor) => {
return actor.type == "character" || actor.type == "npc" || (actor.type == "familiar" && actor.master);
return actor.show.skills;
})
.map((actor) => {
return {
Expand Down Expand Up @@ -711,11 +711,11 @@ export class pf2eProvider extends SystemProvider {
// speed: actor.type === "vehicle" ? data.details.speed : data.attributes.speed?.value || 0,
skills: this.getSkills(data),
show: {
general: ["character", "npc", "vehicle"].includes(actor.type) || (actor.type === "familiar" && data.master.id),
general: ["character", "npc", "vehicle"].includes(actor.type) || (actor.type === "familiar" && data.master.id != ""),
currency: ["character", "npc", "loot", "vehicle"].includes(actor.type),
languages: ["character", "npc"].includes(actor.type),
lore: ["character", "npc"].includes(actor.type),
skills: ["character", "npc"].includes(actor.type) || (actor.type === "familiar" && data.master.id),
skills: ["character", "npc"].includes(actor.type) || (actor.type === "familiar" && data.master.id != ""),
},

saves: {
Expand Down

0 comments on commit 061771d

Please sign in to comment.