Auto-Battle

**Auto-Battle** is a feature in *Honkai: Star Rail* that automatically controls the player's team during combat.

While Auto-Battle is active, usage and targeting of abilities are determined by a variety of factors, including Skill Points, enemy weaknesses, enemy HP, team HP, Status Effects, etc.

Auto-Battle is unlocked during Simulated Universe: First Closed Beta, but may become unavailable during certain story battles.

## AI Logic

### Common Logic

* Skills are more likely to be used the more Skill Points the team has (except healing skills).
* Healing skills favor characters with lower current HP percentage, and avoid characters with more than 80% current HP.
* Damaging abilities favor enemies with matching weakness or are weakness broken.
	+ This usually influences Single Target abilities to a greater extent than Blast abilities.
* Single Target and Bounce Basic ATKs and Skills favor enemies with lower current HP percentage.
	+ This usually influences Basic ATKs to a greater extent than Skills.
* Blast abilities favor enemies with adjacent targets on both sides.
* Ultimates are used immediately when available (except healing Ultimates).
* Single Target Ultimates favor enemies whose current HP percentage is between 20% and 80%.
* Healing Ultimates are used immediately when any ally reaches 50% current HP.

### Character-Specific Logic

####    Argenti

* 90 Energy Ultimate 90 Energy Ultimate is given higher priority the more Normal enemies are present.
* 180 Energy Ultimate 180 Energy Ultimate is given higher priority the more enemies of Elite tier or higher are present.

####    Arlan

* Skill Skill is more likely to be used at higher current HP percentages.

####    Asta

* Skill Skill is more likely to be used with more enemies on the field.

####    Blade

* Skill Skill:
	+ Is avoided if current HP percentage is 30% or less.
	+ Is more likely to be used if current HP percentage is 30%–50%.
	+ Is even more likely to be used the more HP Blade has above 50%, capping at 80%.
* Ultimate Ultimate favors enemies with lower current HP percentage.

####    Bronya

* Skill Skill:
	+ Favors characters with higher damage potential.
	+ Favors characters of damage-oriented Paths.
	+ Favors characters with higher current Action Value.

####    Dan Heng

* Skill Skill favors enemies with higher damage potential.
* Ultimate Ultimate favors slowed enemies.

####    Dan Heng • Imbibitor Lunae

* Ultimate Ultimate:
	+ Favors enemies whose current HP percentage is between 20% and 80%.

####    Dr. Ratio

* Skill Skill:
	+ Favors enemies with more debuffs (up to 5).
	+ Favors enemies affected by Wiseman's Folly from Ultimate.
* Ultimate Ultimate:
	+ Favors enemies with more debuffs (up to 5).
	+ Favors stronger enemies.

####    Gepard

* Skill Skill favors enemies that are not already Frozen.

####    Hanya

* Skill Skill:
	+ Favors stronger enemies.
	+ Avoided if Burden is already active.
* Ultimate Ultimate favors characters of damage-oriented Paths.

####    Hook

* Skill Skill:
	+ Favors enemies with matching weakness and weakness broken enemies to a greater extent than most abilities.
	+ Favors enemies with Burn.

####    Huohuo

* Skill Skill:
	+ Favors allies with adjacent allies.
	+ Favors allies under Crowd Control debuffs.

####    Jing Yuan

* Skill Skill is more likely to be used with multiple enemies on the field.

####    Clara

* Skill Skill is more likely to be used the more enemies are marked with Mark of Counter.

####    March 7th

* Skill Skill:
	+ Favors characters with lower current HP percentage.
	+ Favors characters that do not have full Energy.
	+ Favors locked-on characters.

####    Pela

* Skill Skill is more likely to be used when  Ascension 6 Bonus Ability Ascension 6 Bonus Ability is not active.

####    Trailblazer (Preservation)

* Skill Skill is more likely to be used when Skill's DMG Reduction effect is not active.
* Basic ATK Basic ATK is more likely to be used the more stacks Magma Will has, starting at 4 stacks.
* Basic ATK Basic ATK is more likely to be used when the free enhanced Basic ATK from  Ultimate Ultimate is active.

####    Qingque

* Skill Skill is very likely to be used with 3 or 4 identical tiles, less likely to be used 2 identical tiles, and avoided if there are no identical tiles.

####    Seele

* Skill Skill is more likely to be used if the SPD buff from Skill is not active.

####    Silver Wolf

* Basic ATK Basic ATK and  Skill Skill favor enemies with more debuffs (up to 5).

####    Sushang

* Skill Skill favors weakness broken enemies.
* Ultimate Ultimate:
	+ Unlike most Single Target Ultimates, *does not* favor enemies whose current HP percentage is between 20% and 80%.
	+ Instead favors enemies with lower current HP percentage.

####    Tingyun

* Basic ATK Basic ATK does not consider target weakness or weakness break status, unlike most Basic ATKs.
* Skill Skill:
	+ Favors characters with higher damage potential.
	+ Favors characters of damage-oriented Paths.
	+ Avoided when buff from Skill is already active.
* Ultimate Ultimate:
	+ Avoids Tingyun herself.
	+ Avoids characters with full Energy.
	+ Favors characters of damage-oriented Paths.

####    Welt

* Skill Skill favors enemies with higher damage potential.

####    Xueyi

* Basic ATK Basic ATK and  Skill Skill favor enemies that are weak to Quantum but are not Weakness Broken.
* Ultimate Ultimate:
	+ Favors enemies that are not Weakness Broken.
	+ Favors stronger enemies.

####    Yanqing

* Skill Skill favors enemies with higher damage potential.

####    Yukong

* Skill Skill is more likely to be used when Roaring Bowstrings is not active.

## Change History

Released in **Version 1.0**[Edit History]
Version 1.4

* If enabled at the start of a battle or wave, Auto-Battle will now immediately use available Ultimates instead of waiting for the first action to be finished.
* Auto-Battle is now able to use Ultimates between enemy extra actions.
* Some damage-dealing Ultimates are no longer use immediately upon becoming available. Auto-Battle will wait for available buffs to be applied before using them.

Version 1.3

* Removed logic from Tingyun's  Skill Skill: Favors characters with higher current Action Value.
* Added logics to Blade's  Ultimate Ultimate, which was previously missing any targeting logic:
	+ Favors enemies with lower current HP percentage.
	+ Favors enemies with matching weakness or are weakness broken.
	+ Favors enemies with adjacent targets on both sides.

Version 1.2

* Added logic to Tingyun's  Skill Skill: Usage is avoided when buff from Skill is already active.
* Adjusted the influence of Paths and damage potential on Bronya's  Skill Skill and Tingyun's  Skill Skill.

Version 1.0

* Auto-Battle was released.