mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-22 10:48:08 +08:00
Fix: handle None case during filter exp processing
This commit is contained in:
@@ -203,11 +203,14 @@ class RewardTacticalClass(UI):
|
||||
books from self.books based on current
|
||||
progress of the tactical skill.
|
||||
"""
|
||||
selected = self._tactical_selected_get()
|
||||
if selected is None:
|
||||
return
|
||||
|
||||
current, remain, total = SKILL_EXP.ocr(self.device.image)
|
||||
if total == 5800:
|
||||
# Read 'current' and 'remain' are inaccurate
|
||||
# as selected exp_value is factored into it
|
||||
selected = self._tactical_selected_get()
|
||||
current -= selected.exp_value
|
||||
remain += selected.exp_value
|
||||
logger.info('About to reach level 10; will remove '
|
||||
|
||||
Reference in New Issue
Block a user