Skip to content

Commit

Permalink
0.0.61
Browse files Browse the repository at this point in the history
  • Loading branch information
gambit07 committed Feb 19, 2024
1 parent b1bc8e0 commit 69b5d48
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
prerelease: false
body: |
Updated: Counterspell - Counterspell is now fully hosted within the module and no longer requires item deployment. It should be much better optimized. Additionally, Counter-Counterspelling now allows party members of the initially counterspelled creature to also cast counterspell. The item should be fully functional now and I'll be working on some additional options in the future to allow some modification around when players/npcs see dialogs based on GM preference.
Hotfix in .61
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.zip, ./module.json'
tag: ${{ steps.get-version.outputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "Gambit"
}
],
"version": "0.0.60",
"version": "0.0.61",
"compatibility": {
"minimum": "11",
"verified": "11",
Expand Down
1 change: 1 addition & 0 deletions scripts/macros/counterspell.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export async function counterspell() {
Hooks.on("midi-qol.prePreambleComplete", async (workflow) => {
if (game.settings.get('gambits-premades', 'Enable Counterspell') === false) return;
if(workflow.item.type !== "spell" || workflow.item.name.toLowerCase() === "counterspell") return console.log("No spell was cast");

//if(workflow.item.type !== "spell" || (workflow.item.type === "spell" && workflow.item.system.level === 0) || workflow.item.name.toLowerCase() === "counterspell") return; //Use this instead if you'd like to disable cantrips
Expand Down
2 changes: 0 additions & 2 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ Hooks.once('ready', async function() {
console.error("Error loading compendium data:", error);
});

if (game.settings.get('gambits-premades', 'Enable Counterspell') === true) {
Hooks.on("midi-qol.prePreambleComplete", async (workflow) => {
await socket.executeAsGM("counterspell");
});
}
});

Hooks.on("preUpdateCombat", (combat, update, options) => {
Expand Down

0 comments on commit 69b5d48

Please sign in to comment.