Эх сурвалжийг харах

修复异界之战活动结束后没删除防守阵容数据

gitxsm 6 сар өмнө
parent
commit
d644d23a16

+ 1 - 1
script/module/anotherWorldBattle/AnotherWorldBattleDefine.lua

@@ -14,7 +14,7 @@ AB_OPEN_WDAY_AREA = {7, 4}      -- 活动开启时间范围, 周六 ~ 下周周
 -- AB_JOIN_WDAY = 7             -- 报名时间, 周六
 AB_JOIN_WDAY_AREA = {7, 1}      -- 报名时间范围, 周六 ~ 周日
 
-AB_BATTLE_WDAY_AREA = {2, 4}    -- 战斗时间范围, 周 ~ 周三
+AB_BATTLE_WDAY_AREA = {2, 4}    -- 战斗时间范围, 周 ~ 周三
 
 
 AB_START_SEC = 600          -- 10*60, 用于与当天0点时间戳计算报名/战斗阶段开始时间

+ 1 - 1
script/module/anotherWorldBattle/AnotherWorldBattleNS.lua

@@ -288,7 +288,7 @@ local function formationDataCheeck(human)
 
     -- 不在战斗阶段时间范围
     local wDay = getWDay()
-    if AnotherWorldBattleDefine.AB_BATTLE_WDAY_AREA[1] > wDay and AnotherWorldBattleDefine.AB_BATTLE_WDAY_AREA[2] < wDay then
+    if not (AnotherWorldBattleDefine.AB_BATTLE_WDAY_AREA[1] <= wDay and AnotherWorldBattleDefine.AB_BATTLE_WDAY_AREA[2] >= wDay) then
         human.db.anotherWorlBattle = nil
         return
     end