Skip to content

fix: Implement SC2-style assault mode for persistent AI combat behavior#1135

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-ai-combat-behavior-7xKRD
Jan 30, 2026
Merged

fix: Implement SC2-style assault mode for persistent AI combat behavior#1135
braedonsaunders merged 1 commit into
mainfrom
claude/fix-ai-combat-behavior-7xKRD

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

Units no longer go idle when in enemy bases. Key changes:

  • Add assault mode fields to Unit component (assaultDestination, isInAssaultMode, assaultIdleTicks)
  • CombatSystem: Aggressive target acquisition for assault mode units with no throttling
  • MovementOrchestrator: Preserve assault mode when attack-move units arrive at destination
  • AITacticsManager: Engagement tracking, re-commanding idle assault units, hunt mode for victory pursuit
  • AIMicroSystem: Process idle assault units for micro decisions

SC2-style behavior:

  • Attack-move units stay aggressive even after arriving at destination
  • Units immediately scan for new targets when current target dies
  • AI stays in attacking state while engaged instead of returning to build
  • Hunt mode activates when enemy has <= 3 buildings to finish them off
  • Idle assault units get re-commanded every 2 seconds to continue fighting

https://claude.ai/code/session_01Qyjmryc89LjVdp1PgoP7tv

Units no longer go idle when in enemy bases. Key changes:

- Add assault mode fields to Unit component (assaultDestination, isInAssaultMode, assaultIdleTicks)
- CombatSystem: Aggressive target acquisition for assault mode units with no throttling
- MovementOrchestrator: Preserve assault mode when attack-move units arrive at destination
- AITacticsManager: Engagement tracking, re-commanding idle assault units, hunt mode for victory pursuit
- AIMicroSystem: Process idle assault units for micro decisions

SC2-style behavior:
- Attack-move units stay aggressive even after arriving at destination
- Units immediately scan for new targets when current target dies
- AI stays in attacking state while engaged instead of returning to build
- Hunt mode activates when enemy has <= 3 buildings to finish them off
- Idle assault units get re-commanded every 2 seconds to continue fighting

https://claude.ai/code/session_01Qyjmryc89LjVdp1PgoP7tv
@braedonsaunders braedonsaunders merged commit cd172e5 into main Jan 30, 2026
4 checks passed
@braedonsaunders braedonsaunders deleted the claude/fix-ai-combat-behavior-7xKRD branch January 30, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants