Chain buff casts on the server's UseDone instead of the recoil animation
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>
This commit is contained in:
parent
fe1eca0ca7
commit
1643835c7c
10 changed files with 629 additions and 14 deletions
|
|
@ -99,6 +99,7 @@ internal static class Program
|
|||
CastNoDamageTests.Register(runner);
|
||||
ManaReserveTests.Register(runner);
|
||||
DamageRowsTests.Register(runner);
|
||||
BuffChainTests.Register(runner);
|
||||
return runner.Run("RynthAi host tests", args.Length > 0 ? args[0] : null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue