diff --git a/scripts/hv-unified.user.js b/scripts/hv-unified.user.js index ddc8dc9..ef7ac69 100644 --- a/scripts/hv-unified.user.js +++ b/scripts/hv-unified.user.js @@ -975,13 +975,13 @@ function strategyNovice() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Novice) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true }; @@ -1095,13 +1095,13 @@ function strategyAdept() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Adept) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true }; @@ -1228,14 +1228,14 @@ function strategyVeteran() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Veteran) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true }; diff --git a/scripts/latest.user.js b/scripts/latest.user.js index ddc8dc9..ef7ac69 100644 --- a/scripts/latest.user.js +++ b/scripts/latest.user.js @@ -975,13 +975,13 @@ function strategyNovice() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Novice) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true }; @@ -1095,13 +1095,13 @@ function strategyAdept() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Adept) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true }; @@ -1228,14 +1228,14 @@ function strategyVeteran() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Veteran) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true }; diff --git a/src/strategy-engine.js b/src/strategy-engine.js index 7a66a37..0dc15ff 100644 --- a/src/strategy-engine.js +++ b/src/strategy-engine.js @@ -327,13 +327,13 @@ function strategyNovice() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Novice) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true }; @@ -447,13 +447,13 @@ function strategyAdept() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Adept) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true }; @@ -580,14 +580,14 @@ function strategyVeteran() { if (ch) return ch; } for (const b of BUFF_PRIORITY) { - if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.2 && hasSpell(b.spell)) { + if (shouldBuff(b.icon, b.minTurns) && STATE.mp > 0.10 && hasSpell(b.spell)) { if (b.icon === 'regen' && STATE.hp >= CFG.cureRegenHP) continue; return { type: 'spell', name: b.spell, selfTarget: true }; } } } - // 4. Mana/spirit items — AFTER buffs + // 4. Mana/spirit items — AFTER buffs (Veteran) if (STATE.mp < CFG.manaGemMP) { const gem = hasUsableGem('mana'); if (gem) return { type: 'item', id: gem.id, selfTarget: true };