mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 13:19:25 +08:00
Opt: Re-organise CalculateEmotion and IgnoreLowEmotionWarn
This commit is contained in:
@@ -108,7 +108,7 @@ class CampaignRun(CampaignEvent):
|
||||
Returns:
|
||||
bool: If triggered a restart condition.
|
||||
"""
|
||||
if not self.campaign.config.Emotion_IgnoreLowEmotionWarn:
|
||||
if not self.campaign.emotion.is_ignore:
|
||||
if self.campaign.emotion.triggered_bug():
|
||||
logger.info('Triggered restart avoid emotion bug')
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user