Make sure AI is not busy when using retry to regenerate random story

This commit is contained in:
Gnome Ann 2022-03-23 22:09:35 -04:00
parent 4832dd6f37
commit 0348970b19
1 changed files with 2 additions and 1 deletions

View File

@ -2863,7 +2863,8 @@ def actionretry(data):
emit('from_server', {'cmd': 'errmsg', 'data': "Retry function unavailable in Read Only mode."}) emit('from_server', {'cmd': 'errmsg', 'data': "Retry function unavailable in Read Only mode."})
return return
if(vars.recentrng is not None): if(vars.recentrng is not None):
randomGameRequest(vars.recentrng, memory=vars.recentrngm) if(not vars.aibusy):
randomGameRequest(vars.recentrng, memory=vars.recentrngm)
return return
if actionback(): if actionback():
actionsubmit("", actionmode=vars.actionmode, force_submit=True) actionsubmit("", actionmode=vars.actionmode, force_submit=True)