mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Combat should not reenter if stamina exhausted but wave limit set
This commit is contained in:
parent
5eabcbe22d
commit
442eaf195b
@ -218,6 +218,9 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
|
|||||||
Returns:
|
Returns:
|
||||||
bool: True to re-enter combat and run with another wave settings
|
bool: True to re-enter combat and run with another wave settings
|
||||||
"""
|
"""
|
||||||
|
if self.config.stored.TrailblazePower.value < self.combat_wave_cost:
|
||||||
|
logger.info('Current trailblaze power is not enough for next run')
|
||||||
|
return False
|
||||||
# Wave limit
|
# Wave limit
|
||||||
if self.combat_wave_limit:
|
if self.combat_wave_limit:
|
||||||
if self.combat_wave_done < self.combat_wave_limit:
|
if self.combat_wave_done < self.combat_wave_limit:
|
||||||
@ -230,6 +233,7 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
|
|||||||
if self.config.stored.TrailblazePower.value >= self.combat_wave_cost:
|
if self.config.stored.TrailblazePower.value >= self.combat_wave_cost:
|
||||||
logger.info('Still having some trailblaze power run with less waves to empty it')
|
logger.info('Still having some trailblaze power run with less waves to empty it')
|
||||||
return True
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
def combat_finish(self) -> bool:
|
def combat_finish(self) -> bool:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user