We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d30b63 commit d2a474eCopy full SHA for d2a474e
1 file changed
module/campaign/gems_farming.py
@@ -37,12 +37,13 @@ def check_reduce(self, battle):
37
Raise:
38
CampaignEnd: Pause current task to prevent emotion control in the future.
39
"""
40
-
41
- try:
42
- super().check_reduce(battle)
43
- except ScriptEnd:
+ if not self.is_calculate:
+ return
+
+ recovered, delay = self._check_reduce(battle)
44
+ if delay:
45
self.config.GEMS_EMOTION_TRIGGERED = True
- self.config.task_delay(minute=0) # to undo emotion delay
46
+ logger.info('Detect low emotion, pause current task')
47
raise CampaignEnd('Emotion control')
48
49
def wait(self, fleet_index):
0 commit comments