Skip to content

Commit

Permalink
fixes #516
Browse files Browse the repository at this point in the history
  • Loading branch information
Muttley committed Oct 10, 2023
1 parent b03e834 commit 5b78eab
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 537 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Bugfixes
* [#515] Backstab option not available on attack rolls
* [#516] Wand and Scroll item sheets not showing spell caster classes correctly

## v.1.4.4

Expand Down
14 changes: 7 additions & 7 deletions macros/drawHazard.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ const weakenTable = await pack.getDocument(weakenTableID);
const weakenResult = await weakenTable.draw({displayChat: false});
const weaken = weakenResult.results.pop().getChatText();

const message = `<p>A location with <b>${movement}</b>
that will weaken the characters with <b>${weaken}</b>
const message = `<p>A location with <b>${movement}</b>
that will weaken the characters with <b>${weaken}</b>
and causes damage through <b>${damage}</b></p>`;

const chatData = {
user: game.user._id,
speaker: ChatMessage.getSpeaker(),
content: message,
whisper: game.users.filter(u => u.isGM).map(u => u._id),
user: game.user._id,
speaker: ChatMessage.getSpeaker(),
content: message,
whisper: game.users.filter(u => u.isGM).map(u => u._id),
};

ChatMessage.create(chatData, {});
ChatMessage.create(chatData, {});
Loading

0 comments on commit 5b78eab

Please sign in to comment.