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:
parent
8668f2a3ca
commit
831001796b
5 changed files with 29 additions and 13 deletions
|
|
@ -22,8 +22,8 @@
|
|||
// looked into, and a sweep that overflowed the pending list counts as not done: it runs
|
||||
// again once there is room.
|
||||
//
|
||||
// Combat: Inventory sends wait while a target is selected or a cast or attack
|
||||
// is in flight (Context.CombatBusy). Each 0xC8 raises AC's busy count, and plugins gate
|
||||
// Combat: Inventory sends wait while a cast or attack is in flight
|
||||
// (Context.CombatBusy, AutoIdPolicy.InCombat; a selected target alone does not count). Each 0xC8 raises AC's busy count, and plugins gate
|
||||
// their casts on it. The selected target and an open container are not held.
|
||||
//
|
||||
// Bounds: _incoming is capped at MaxIncoming (oldest dropped, counted) because the drain
|
||||
|
|
@ -78,7 +78,7 @@ internal sealed class AutoIdDrain
|
|||
public long OpenedAtMs; // when OpenContainer was opened (0 = unknown)
|
||||
public long SettleUntilMs; // PlayerLifecycleLog.SettleUntilMs
|
||||
public long LoginCompleteAtMs; // LoginLifecycleHooks.LoginCompleteAtMs
|
||||
public bool CombatBusy; // a target selected, or a cast or attack in flight (Inventory waits)
|
||||
public bool CombatBusy; // a cast or attack in flight, AutoIdPolicy.InCombat (Inventory waits)
|
||||
}
|
||||
|
||||
private struct Pending
|
||||
|
|
|
|||
Loading…
Reference in a new issue