Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Reminder for when wearing armor without proficiency. #48

Open
lucasmiranda2711 opened this issue Jan 25, 2023 · 0 comments
Open

Comments

@lucasmiranda2711
Copy link

Reminder could be able to tell when wearing armor without proficiency that we have disadvantages.

As per rules:
"If you wear armor that you lack Proficiency with, you have disadvantage on any ability check, saving throw, or Attack roll that involves Strength or Dexterity, and you can’t cast Spells."

my function purposal:

function _armorIsNotProficient() {
    if (this.abilityId === "str" || this.abilityId === "dex") {
      const item = this.items.find(
        (item) =>
          item.type === "equipment" &&
          item.system?.equipped &&
          item.system?.proficient == false
      );
      debug("equiped item that imposes disadvantage on ability, savings and attacks using str and dex", item?.name);
      return item?.name;
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant