Skip to content

Commit

Permalink
No longer rolls on damage
Browse files Browse the repository at this point in the history
  • Loading branch information
TomChristoffer committed Dec 24, 2023
1 parent c5471a1 commit d6a5028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system-support/aa-wrath-and-glory.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { getRequiredData } from "./getRequiredData.js";
export function systemHooks() {
Hooks.on("createChatMessage", async (msg) => {
if (msg.user.id !== game.user.id) { return };

const systemName = 'wrath-and-glory';
if (msg.flags[systemName].testData.result.damage.dice.length != 0) { return };

let compiledData = await getRequiredData({
actorId: msg.speaker.actor ?? msg.flags[systemName].testData.context.speaker.actor,
Expand Down

0 comments on commit d6a5028

Please sign in to comment.