fixed bug with item damage (mispelling)

This commit is contained in:
The Last Scrub
2020-07-05 19:27:36 -07:00
parent e3a717b5f6
commit 47558b5f3e
6 changed files with 21 additions and 17 deletions
+4 -1
View File
@@ -27,7 +27,10 @@ export class DeltaGreenItem extends Item {
const actorData = this.actor ? this.actor.data.data : {};
const itemData = item.data;
let roll = new Roll('d20+@abilities.str.mod', actorData);
// this isn't correct, but just leave it like this for now
// eventually need to point towards chat message rolling functions in actors sheet
// maybe need to put those in a script file and export them...
let roll = new Roll('item.data.damage', actorData);
let label = `Rolling ${item.name}`;
roll.roll().toMessage({
speaker: ChatMessage.getSpeaker({ actor: this.actor }),