修复自定义游戏可以在一些情况下同时打开ai和任务 close #211

This commit is contained in:
MrZ626
2021-08-16 00:16:33 +08:00
parent 05d01bbcc5
commit cf84ab5921

View File

@@ -56,14 +56,16 @@ function scene.keyDown(key,isRep)
if CUSTOMENV.opponent:sub(1,2)=='CC'and CUSTOMENV.sequence=="fixed"then
MES.new('error',text.ai_fixed)
return
elseif #BAG>0 then
end
if #BAG>0 then
for _=1,#BAG do
if BAG[_]>7 then
MES.new('error',text.ai_prebag)
return
end
end
elseif #MISSION>0 then
end
if #MISSION>0 then
MES.new('error',text.ai_mission)
return
end