Vitals: hand combat the tick when no heal is landing in a fight

Health under a heal line holds the arbiter on Buffing by itself. A melee
character with a shield was held in Buffing for 17 s with no heal
landing (a used-up kit re-sent), stopped attacking the boss and died.

Now, in a fight (a monster within Monster Range), 6 s under a heal line
with no heal landing (health up 3 points, the HP failsafe's test) hands
combat the tick for 5 s, then the vitals hold it again; a heal landing or
health over the line ends the episode. 6 s is VirindiTank's give-up for
one kit (3 s to start, 3 s for the result).

- The vitals step still runs every tick meanwhile (kits and potions go),
  but makes no stance change or wield for a vital while combat has the
  tick: no wand swap for Heal Self, and no peace switch for a kit in any
  stance (Magic included, with Use Kits in Magic Mode). A caster already
  in Magic stance casts its heal spell as before.
- With no peace switch going out, Kit Min Success (and Stamina Kit Min
  Success) is computed in the current stance, not as if in peace.
- A release waits for a heal under way: a kit whose heal motion has played
  (heal grace's NoteKitProgress), or a wand wield in flight.
- The hold resets whenever the macro is off (the stop, and the HP
  failsafe's recall stop), so a restart in a fight starts a fresh count.

Tests: HealHoldTests (new, 6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel Wallace 2026-11-07 08:46:00 -08:00
commit ebeec58ee7
4 changed files with 435 additions and 7 deletions

View file

@ -192,6 +192,7 @@ internal static class Program
MonsterStatsTests.Register(runner);
MetaSaveTests.Register(runner);
HealGraceTests.Register(runner);
HealHoldTests.Register(runner);
return runner.Run("RynthAi host tests", args.Length > 0 ? args[0] : null);
}
}