Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
fix: prevent false positives on attack roll hooks that were canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
akrigline committed Jan 7, 2022
1 parent fb00f1e commit 20c27fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/item/rollAttack.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export function patchRollAttack() {
async function rollAttackPatch(wrapper, options, ...rest) {
const result = await wrapper(options, ...rest);

if (!result) return result;

const item = this;
const actor = this.actor;

Expand Down

0 comments on commit 20c27fe

Please sign in to comment.