The buff level comes from the live buffed skill (SpellManager.ComputeTier over
BuffMinSkillLevelTier1..8) and the spellbook. Inside a force or batch run a family
cast earlier in the run read active, so Creature Enchantment Mastery, Focus and
Willpower cast at the level the skill allowed before they landed stayed there for
the whole run; between passes a failed upgrade could arm the landed-tier cap and
lose the upgrade until the plugin reloaded.
- In a run, a family already cast reads active only while the level castable now is
not strictly higher than the level the run CONFIRMED for it; a higher level is cast
again right away (after the priority buffs). Never lower.
- The attempted tier kept since load is written on confirmation, so a fizzled or refused
upgrade is cast again at the next opportunity, in the run or on the next pass.
- No try cap, and no rest after a fizzle, a client refusal or a no-show; a server mana or
component refusal still rests the family as it does for any buff. Casting thresholds
are consistent, so the bot keeps trying until it lands. Pacing stays: a client-refused cast waits
SpellCastIntervalMs, and a fizzled upgrade is sent once per server answer, never
while one is unanswered.
- While the pending cast is an upgrade, the registry counts the family as landed only
when its entry moved (a later expiry, or the pending level or higher). A late "You
cast" line for a lower level, or one the cast tracker credits to an earlier send,
does not confirm the pending upgrade.
- An upgrade's no-show is never a silent-no-show strike, a 30 min park or a
blacklist entry, so the lower level it was cast over is still recast when it runs low.
- One "[Buff] upgrade: <buff> level a -> b" line per cast that replaces an active
lower level (BuffUpgrades counts them), at the same effective level IsBuffActive
uses: refreshing an Incantation that lands a level low is not an upgrade.
- A scroll read that teaches a spell ("The scroll is destroyed.") makes the next buff
check read the spellbook at once.
- Integrates with the mana reserve hold (BuffWaitsForMana): the hold runs first, on
the upgrade's own spell id, so an upgrade that would leave mana under the reserve
is not sent, counted or logged; Stamina to Mana goes and the upgrade follows.
Tests: in-run order, next-pass upgrade with equal-level and lower-skill controls,
the scroll case, fizzle and refusal retries (run, next pass, heartbeat, client
refusal pacing), registry no-shows, late lines, no park on no-shows (self and item
spells), and an upgrade held by the mana reserve (fails with the hold disabled).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Life Magic Mastery joins Creature Enchantment Mastery, Focus and Willpower at the
head of the buff list (all four raise casting skill or mana); the rest keeps its order.
- A mastery for an untrained skill is never cast.
- New setting SkipUnusableBuffs (default on; profile, bridge, copy, settings map, UI)
leaves out the weapon enchantments the character has no use for: Blood Drinker /
Heart Seeker / Swift Killer without a melee or missile weapon (listed or in hand),
Spirit Drinker / Hermetic Link without a wand (listed, in hand, or the pack wand
buffing would wield when WieldUnlistedWandWhenNoneListed is on), Defender without
either. Unclassifiable listed items filter nothing; no cache means no filtering;
ammo is no weapon. The weapon kit is cached for 1 s and rebuilt when the Items
list, the unlisted-wand setting or the cache changes.
- Skipped buffs are reported once per run (Force Rebuff or the automatic batch),
grouped by reason and capped at 5 names per reason, printed when the content
changes or every 30 s, in chat and the log, in /ra buff skipped, and on the
Buffing settings page.
- Force Buff and Cancel buttons on the Buffing settings page, and /ra buff
force|cancel|skipped, both reusing the existing queued Force Rebuff request
(FR button, /ra forcebuff).
Tests: priority order, force suite vs idle, skill and weapon filters (pack wand,
wielded weapons, ammo, unclassified items), visibility, the setting, and the
/ra buff command handler.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
In a buff pass every buff waited on the animation gate (ActionPacer.GestureHolds and
CastGateWatchdog, both the client's motion queue) after the server's UseDone for the
previous buff, about 550 ms per buff. ACE clears IsBusy just before that UseDone and
takes the next cast at once.
BuffCastChain lets the next buff skip only the animation gate when the last action
RynthAi sent was its own buff cast, the very next UseDone after it is UseDone(0) and
the last one, it was seen under 1.5 s ago, the character is in Magic stance and no
vital is under any line (the mana reserve included). A buff that would need Stamina
to Mana first (the reserve) drops the fast path, so Stamina to Mana goes out on a
gated tick. The pacer's outstanding-action gate, the pending cast, the
server-resolution wait, the busy count, the cast interval, the mana floor and the
too-busy backoff all stay. Buff items and rations wait for a gated tick.
Refusals during buffing are counted as running totals since load (client: CastSpell false;
server: an error in the buff's UseDone; too-busy lines), logged one line each, and
summed up at the end of each pass. Any refusal of a fast-path cast turns the fast
path off for the rest of that pass.
Setting FastBuffChain (Advanced settings, metas), default on.
Tests also cover the reserve: mana left under it, and mana over it but under it once
the next buff is paid, both wait for the recoil before Stamina to Mana goes.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A snapshot of the working tree for aelrynth.com/git/: the code, build files
and public docs. Internal review notes and agent instructions are left out.
MIT licensed; see LICENSE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>