Skip to content

Commit

Permalink
Restore proficiency bonus for spell attack rolls
Browse files Browse the repository at this point in the history
  • Loading branch information
aaclayton committed Mar 12, 2020
1 parent 2fadb90 commit ed0dab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/item/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export class Item5e extends Item {

// Define Roll bonuses
const parts = [`@mod`];
if ( itemData.proficient === true ) {
if ( (this.data.type !== "weapon") || itemData.proficient ) {
parts.push("@prof");
}

Expand Down Expand Up @@ -628,7 +628,7 @@ export class Item5e extends Item {
const roll = new Roll(itemData.formula, rollData).roll();
roll.toMessage({
speaker: ChatMessage.getSpeaker({actor: this.actor}),
flavor: itemData.chatFlavor || title,
flavor: this.data.data.chatFlavor || title,
rollMode: game.settings.get("core", "rollMode")
});
return roll;
Expand Down

0 comments on commit ed0dab4

Please sign in to comment.