From 0bbdb66b14e41ffa8ea99e7490afa8ad1b055183 Mon Sep 17 00:00:00 2001 From: GaboGG Date: Wed, 22 Jul 2026 06:18:39 -0400 Subject: [PATCH] Fix Spark of Life icon key: sparklife.png, not fallenshield The active buff icon is /y/e/sparklife.png -> stored as 'sparklife'. The 'fallenshield.png' check is for detecting when it has been consumed (triggered), not for the active buff. This was causing the script to think Spark of Life was never active, recasting it every turn. --- scripts/hv-unified.user.js | 2 +- scripts/latest.user.js | 2 +- src/strategy-engine.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/hv-unified.user.js b/scripts/hv-unified.user.js index 1d50e23..3c0defc 100644 --- a/scripts/hv-unified.user.js +++ b/scripts/hv-unified.user.js @@ -679,7 +679,7 @@ function shouldBuff(name, minTurns) { const BUFF_PRIORITY = [ { icon: 'haste', spell: 'Haste', minTurns: 2 }, { icon: 'protection', spell: 'Protection', minTurns: 2 }, - { icon: 'fallenshield', spell: 'Spark of Life', minTurns: 1 }, // icon: fallenshield.png + { icon: 'sparklife', spell: 'Spark of Life', minTurns: 1 }, // icon: sparklife.png { icon: 'regen', spell: 'Regen', minTurns: 2 }, { icon: 'absorb', spell: 'Absorb', minTurns: 2 }, { icon: 'shadowveil', spell: 'Shadow Veil', minTurns: 3 }, diff --git a/scripts/latest.user.js b/scripts/latest.user.js index 1d50e23..3c0defc 100644 --- a/scripts/latest.user.js +++ b/scripts/latest.user.js @@ -679,7 +679,7 @@ function shouldBuff(name, minTurns) { const BUFF_PRIORITY = [ { icon: 'haste', spell: 'Haste', minTurns: 2 }, { icon: 'protection', spell: 'Protection', minTurns: 2 }, - { icon: 'fallenshield', spell: 'Spark of Life', minTurns: 1 }, // icon: fallenshield.png + { icon: 'sparklife', spell: 'Spark of Life', minTurns: 1 }, // icon: sparklife.png { icon: 'regen', spell: 'Regen', minTurns: 2 }, { icon: 'absorb', spell: 'Absorb', minTurns: 2 }, { icon: 'shadowveil', spell: 'Shadow Veil', minTurns: 3 }, diff --git a/src/strategy-engine.js b/src/strategy-engine.js index 6320e4b..1b3021b 100644 --- a/src/strategy-engine.js +++ b/src/strategy-engine.js @@ -34,7 +34,7 @@ function shouldBuff(name, minTurns) { const BUFF_PRIORITY = [ { icon: 'haste', spell: 'Haste', minTurns: 2 }, { icon: 'protection', spell: 'Protection', minTurns: 2 }, - { icon: 'fallenshield', spell: 'Spark of Life', minTurns: 1 }, // icon: fallenshield.png + { icon: 'sparklife', spell: 'Spark of Life', minTurns: 1 }, // icon: sparklife.png { icon: 'regen', spell: 'Regen', minTurns: 2 }, { icon: 'absorb', spell: 'Absorb', minTurns: 2 }, { icon: 'shadowveil', spell: 'Shadow Veil', minTurns: 3 },