From b069d42fc8c16a98f495e1d01af7df079d949582 Mon Sep 17 00:00:00 2001 From: GaboGG Date: Mon, 3 Aug 2026 10:07:53 -0400 Subject: [PATCH] v0.15.2 - Gate spirit stance auto-enable behind CFG.autoSpirit (default OFF) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 7+ mob burst toggle (step 0d) ignored CFG.autoSpirit and always fired. It enabled spirit, then other priority steps (debuffs, buffs, items) intercepted before the weapon skill fired, wasting the toggle cycle and OC. Also the off-toggle didn't always fire. Now: autoSpirit=false (default) → no auto-enable at all. Manual spirit toggle only. The settings panel toggle ('Auto Spirit Stance') already existed — it now actually gates the behavior. --- scripts/hv-unified.user.js | 7 ++++--- scripts/latest.user.js | 7 ++++--- src/config.js | 2 +- src/header.user.js | 2 +- src/strategy-engine.js | 3 ++- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/scripts/hv-unified.user.js b/scripts/hv-unified.user.js index 6b0d24f..3abd29f 100644 --- a/scripts/hv-unified.user.js +++ b/scripts/hv-unified.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.15.1 +// @version 0.15.2 // @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* @@ -17,7 +17,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.15.1'; +const VERSION = '0.15.2'; const CFG = { // — Battle automation @@ -1449,8 +1449,9 @@ function strategyVeteran() { } // 0d. Spirit Stance for burst clear — toggle on for 7+ mob, off after one skill + // Gated by CFG.autoSpirit (default OFF — manual toggle only) const is2H = STATE.skillsKnown.includes('Great Cleave') || STATE.skillsKnown.includes('Rending Blow'); - if (is2H && STATE.monsters && STATE.monsters.length >= 7 && STATE.oc >= (CFG.skillOC || 60)) { + if (CFG.autoSpirit && is2H && STATE.monsters && STATE.monsters.length >= 7 && STATE.oc >= (CFG.skillOC || 60)) { if (STATE._spiritForSkill >= 1 && STATE.spiritStance) { if (STATE._spiritForSkill === 1) { STATE._spiritForSkill = 2; diff --git a/scripts/latest.user.js b/scripts/latest.user.js index 6b0d24f..3abd29f 100644 --- a/scripts/latest.user.js +++ b/scripts/latest.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.15.1 +// @version 0.15.2 // @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* @@ -17,7 +17,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.15.1'; +const VERSION = '0.15.2'; const CFG = { // — Battle automation @@ -1449,8 +1449,9 @@ function strategyVeteran() { } // 0d. Spirit Stance for burst clear — toggle on for 7+ mob, off after one skill + // Gated by CFG.autoSpirit (default OFF — manual toggle only) const is2H = STATE.skillsKnown.includes('Great Cleave') || STATE.skillsKnown.includes('Rending Blow'); - if (is2H && STATE.monsters && STATE.monsters.length >= 7 && STATE.oc >= (CFG.skillOC || 60)) { + if (CFG.autoSpirit && is2H && STATE.monsters && STATE.monsters.length >= 7 && STATE.oc >= (CFG.skillOC || 60)) { if (STATE._spiritForSkill >= 1 && STATE.spiritStance) { if (STATE._spiritForSkill === 1) { STATE._spiritForSkill = 2; diff --git a/src/config.js b/src/config.js index c5e3c89..aeb9668 100644 --- a/src/config.js +++ b/src/config.js @@ -2,7 +2,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.15.1'; +const VERSION = '0.15.2'; const CFG = { // — Battle automation diff --git a/src/header.user.js b/src/header.user.js index ae472b3..325ec74 100644 --- a/src/header.user.js +++ b/src/header.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.15.1 +// @version 0.15.2 // @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* diff --git a/src/strategy-engine.js b/src/strategy-engine.js index 77a8b26..c931b2d 100644 --- a/src/strategy-engine.js +++ b/src/strategy-engine.js @@ -723,8 +723,9 @@ function strategyVeteran() { } // 0d. Spirit Stance for burst clear — toggle on for 7+ mob, off after one skill + // Gated by CFG.autoSpirit (default OFF — manual toggle only) const is2H = STATE.skillsKnown.includes('Great Cleave') || STATE.skillsKnown.includes('Rending Blow'); - if (is2H && STATE.monsters && STATE.monsters.length >= 7 && STATE.oc >= (CFG.skillOC || 60)) { + if (CFG.autoSpirit && is2H && STATE.monsters && STATE.monsters.length >= 7 && STATE.oc >= (CFG.skillOC || 60)) { if (STATE._spiritForSkill >= 1 && STATE.spiritStance) { if (STATE._spiritForSkill === 1) { STATE._spiritForSkill = 2;