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.
This commit is contained in:
GaboGG 2026-07-22 06:18:39 -04:00
parent e745505c6e
commit 0bbdb66b14
3 changed files with 3 additions and 3 deletions

View file

@ -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 },

View file

@ -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 },

View file

@ -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 },