Skip to content

Commit

Permalink
update compatibility to exclude BR, include sw5e
Browse files Browse the repository at this point in the history
  • Loading branch information
akrigline committed Oct 31, 2021
1 parent 57feb95 commit 881d26a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ If there is no token targeted when the attack roll is rolled, no chat card is ou

Compatible with:
- Minimal Rolling Enhancements
- Better Rolls 5e

Not Compatible with:
- Better Rolls 5e (See #1 for details)

If you're using Midi, this is already entirely possible without this module. Do not use this with that.

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "attack-roll-check-5e",
"title": "Attack Roll Check DnD5e",
"description": "A module which notifies the GM when an attack roll hits a targeted token.",
"version": "0.3.0",
"version": "1.0.0",
"author": "Andrew Krigline",
"authors": [
{
Expand All @@ -13,7 +13,7 @@
"patreon": "ElfFriend_DnD"
}
],
"system": [ "dnd5e" ],
"system": [ "dnd5e", "sw5e" ],
"scripts": [
"./scripts/module.js"
],
Expand Down
9 changes: 3 additions & 6 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,14 @@ class AttackRollCheck5e {
content: html,
}

if (game.modules.get('betterrolls5e')?.active) {
setTimeout(() => ChatMessage.create(messageData), 100);
}

if (game.modules.get('dice-so-nice')?.active) {
Hooks.once('diceSoNiceRollComplete', () => {
ChatMessage.create(messageData)
})
} else {
ChatMessage.create(messageData)
return;
}

ChatMessage.create(messageData);
}

static _testAttackToHit = (roll, token) => {
Expand Down

0 comments on commit 881d26a

Please sign in to comment.