mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Empty character_current
This commit is contained in:
parent
364d5e9c5c
commit
7c434049fb
@ -280,6 +280,10 @@ class CharacterSwitch(UI):
|
||||
logger.hr('Character switch to ranged')
|
||||
if update:
|
||||
self.character_update()
|
||||
if self.character_current is None:
|
||||
# Cannot switch, keep None to retry at next call
|
||||
self.character_is_ranged = None
|
||||
return None
|
||||
|
||||
character = self._get_ranged_character()
|
||||
if character is True:
|
||||
|
Loading…
Reference in New Issue
Block a user