Skip to content

Commit

Permalink
[#1396] Spell attacks always considered proficient.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyorl committed Jan 14, 2022
1 parent 6c12511 commit 45b9be5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/item/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ export default class Item5e extends Item {
*/
prepareFinalAttributes() {
// Proficiency
this.data.data.prof = new Proficiency(this.actor?.data.data.attributes.prof, this.data.data.proficient);
const isProficient = (this.type === "spell") || this.data.data.proficient; // Always proficient in spell attacks.
this.data.data.prof = new Proficiency(this.actor?.data.data.attributes.prof, isProficient);

if ( this.data.data.hasOwnProperty("actionType") ) {
// Ability checks
Expand Down

0 comments on commit 45b9be5

Please sign in to comment.