Skip to content

Commit

Permalink
0.3.13
Browse files Browse the repository at this point in the history
- Fixed initiative bugs caused by Mob Attack Tool in V9, as reported in issue #48.
- This means that Mob Attack Tool no longer wraps the 'rollInitiative' function, which may interfere with the way Combat Tracker Groups handles initiative. On the other hand, it also makes Mob Attack Tool compatible with the newer versions of the Group Initiative module.
- Fixed a bug related to showing Dice So Nice animations for GM attack rolls using Mob Attack Tool by following @veithflo's advice in issue #47.
- Bumped compatible core version to V9.
  • Loading branch information
Stendarpaval committed Dec 28, 2021
1 parent 7e3414d commit a9e0d17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
}
],
"url": "https://github.com/Stendarpaval/mob-attack-tool",
"version": "0.3.12",
"version": "0.3.13",
"minimumCoreVersion": "0.8.8",
"compatibleCoreVersion": "0.8.9",
"compatibleCoreVersion": "9",
"system": ["dnd5e"],
"esmodules": [
"scripts/mobAttack.js"
Expand All @@ -27,5 +27,5 @@
"styles/mob-attack-tool.css"
],
"manifest": "https://raw.githubusercontent.com/Stendarpaval/mob-attack-tool/main/module.json",
"download": "https://github.com/Stendarpaval/mob-attack-tool/releases/download/0.3.12/module.zip"
"download": "https://github.com/Stendarpaval/mob-attack-tool/releases/download/0.3.13/module.zip"
}
2 changes: 1 addition & 1 deletion scripts/individualRolls.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function rollMobAttackIndividually(data) {
// Check settings for rolling 3d dice from Dice So Nice
if (game.user.getFlag(moduleName,"showIndividualAttackRolls") ?? game.settings.get(moduleName,"showIndividualAttackRolls")) {
if (game.modules.get("dice-so-nice")?.active && game.settings.get(moduleName, "enableDiceSoNice")) {
if (!game.settings.get(moduleName, "hideDSNAttackRoll") || !game.user.isGM) game.dice3d.showForRoll(attackRoll);
if (!game.settings.get(moduleName, "hideDSNAttackRoll") || !game.user.isGM) game.dice3d.showForRoll(attackRoll, game.user, game.settings.get("core", "rollMode") === 'publicroll');
}
}

Expand Down
5 changes: 3 additions & 2 deletions scripts/mobAttack.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ Hooks.once("init", () => {
initSettings();
initMobAttackTool();

console.log("Mob Attack Tool | Wrapping rollInitiative...");
libWrapper.register(moduleName, "Combat.prototype.rollInitiative", matRollInitiative, "OVERRIDE");
// The lines below are commented out to restore combat tracker functionality in V9
// console.log("Mob Attack Tool | Wrapping rollInitiative...");
// libWrapper.register(moduleName, "Combat.prototype.rollInitiative", matRollInitiative, "OVERRIDE");

const dialogs = new Map();
const storedHooks = {};
Expand Down

0 comments on commit a9e0d17

Please sign in to comment.