v0.15.2 - Gate spirit stance auto-enable behind CFG.autoSpirit (default OFF)

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.
This commit is contained in:
GaboGG 2026-08-03 10:07:53 -04:00
parent b59da5544a
commit b069d42fc8
5 changed files with 12 additions and 9 deletions

View file

@ -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;

View file

@ -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;

View file

@ -2,7 +2,7 @@
// CONFIG — default settings
// ═══════════════════════════════════════════════════════════════════════
const VERSION = '0.15.1';
const VERSION = '0.15.2';
const CFG = {
// — Battle automation

View file

@ -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/*

View file

@ -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;