Skip to content

Commit 010affc

Browse files
committed
fix: Slow/Fast Action Option broken in System VAESEN #131
1 parent 9777829 commit 010affc

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ This system provides character sheets and items for your play, if you would lik
2929

3030

3131
## Release Notes
32+
v6.0.5
33+
= 🐛 Fix: Fast and slow actions setting and unetting incorrectly when YZE Combat module is active [#131](https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt/issues/131)
34+
3235
v6.0.4
3336
- 🐛 Fix: Editor not visible on headquarter notes sheet.
3437

Diff for: script/hooks.js

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Hooks.once("init", () => {
4242
type: "deck",
4343
},
4444
};
45+
CONFIG.hasYZECombatActive = game.modules.get("yze-combat")?.active;
46+
console.log("Vaesen | CONFIG.hasYZECombatActive: ", CONFIG.hasYZECombatActive);
4547

4648
console.log("Vaesen | CONFIG.vaesen: ", CONFIG.vaesen);
4749

Diff for: script/util/conditions.js

+4
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ export class conditions {
162162

163163
static async onActionUpdate(tokenId, combatant, turn, preparation) {
164164
if (!preparation && this.combatPreparation) return;
165+
if(CONFIG.hasYZECombatActive){
166+
console.log("YZE Combat is active - skipping conditions");
167+
return;
168+
}
165169

166170
const token = await Array.from(game.scenes.current.tokens).find(
167171
(it) => it._id == tokenId

Diff for: system.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Vaesen",
33
"description": "Nordic horror role-playing",
4-
"version": "6.0.4",
4+
"version": "6.0.5",
55
"esmodules": [
66
"script/hooks.js"
77
],
@@ -90,7 +90,7 @@
9090
"url": "https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt",
9191
"socket": true,
9292
"manifest": "https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt/releases/latest/download/system.json",
93-
"download": "https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt/releases/download/6.0.2/system.zip",
93+
"download": "https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt/releases/download/6.0.5/system.zip",
9494
"license": "LICENSE.txt",
9595
"id": "vaesen",
9696
"authors": [

0 commit comments

Comments
 (0)