AutoId: a selected target alone no longer holds the pack

A hunting bot nearly always has something selected, so holding Inventory appraisals on a
selection would leave the pack (mana stones included) unread. Combat is now a cast in
flight (CastGate) or an attack running (ClientActionGates) only, in the pure
AutoIdPolicy.InCombat, which takes the selection as input and ignores it.

Tests: target selected with no cast and no attack is not combat and the pack sends; a
cast, or an attack, alone is combat.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Daniel Wallace 2026-10-12 16:29:54 -07:00
commit 831001796b
5 changed files with 29 additions and 13 deletions

View file

@ -240,7 +240,7 @@ internal static partial class Program
Check(f.PendingCount == AutoIdDrain.MaxIncoming, $"the newest {AutoIdDrain.MaxIncoming} kept, got {f.PendingCount}");
}
// The pack waits through combat (target selected, cast or attack in flight); kept, not
// The pack waits through combat (a cast or attack in flight); kept, not
// dropped; an open container is not held.
private static void DrainCombatHoldsInventory()
{