mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Handle GET_REWARD while switching battle pass tabs
This commit is contained in:
parent
4eabe14a68
commit
e84e564e8b
@ -20,7 +20,15 @@ from tasks.base.ui import UI
|
||||
from tasks.battle_pass.assets.assets_battle_pass import *
|
||||
from tasks.battle_pass.keywords import *
|
||||
|
||||
SWITCH_BATTLE_PASS_TAB = Switch('BattlePassTab', is_selector=True)
|
||||
|
||||
class BattlePassTab(Switch):
|
||||
def handle_additional(self, main: UI):
|
||||
if main.handle_reward():
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
SWITCH_BATTLE_PASS_TAB = BattlePassTab('BattlePassTab', is_selector=True)
|
||||
SWITCH_BATTLE_PASS_TAB.add_state(
|
||||
KEYWORD_BATTLE_PASS_TAB.Rewards,
|
||||
check_button=REWARDS_CHECK,
|
||||
|
Loading…
Reference in New Issue
Block a user