From 54242318edf6f2699017846afddf15b4b2094461 Mon Sep 17 00:00:00 2001 From: Fang Date: Wed, 21 Jun 2023 21:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/dungeon/dungeon_data.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lua/app/userdata/dungeon/dungeon_data.lua b/lua/app/userdata/dungeon/dungeon_data.lua index eb74d808..df5cd6be 100644 --- a/lua/app/userdata/dungeon/dungeon_data.lua +++ b/lua/app/userdata/dungeon/dungeon_data.lua @@ -123,16 +123,20 @@ function DungeonData:getOpenDungeons() end local openDungeons = {} + -- 开启且活跃 table.foreach(self.dungeonStage, function(module, s) if self:isOpen(module) and self:isActive(module) then table.insert(openDungeons, module) end end) - table.foreach(self.dungeonStage, function(module, s) - if self:isOpen(module) and not self:isActive(module) then - table.insert(openDungeons, module) - end - end) + -- 开启且不活跃 + if not GFunc.isShenhe() then + table.foreach(self.dungeonStage, function(module, s) + if self:isOpen(module) and not self:isActive(module) then + table.insert(openDungeons, module) + end + end) + end -- 碎片和金币顺序特殊处理:策划要求,同时开启时,金币在碎片之上 if self:isActive(ModuleManager.MODULE_KEY.DUNGEON_GOLD) and self:isActive(ModuleManager.MODULE_KEY.DUNGEON_SHARDS) then