|
|
@@ -1349,6 +1349,10 @@ end
|
|
|
|
|
|
-- 查询一键扫荡状态
|
|
|
function LostTemple_OneClickSweep_Query(human)
|
|
|
+ if not isOpen(human) then
|
|
|
+ return Broadcast.sendErr(human, Lang.COMMOM_NOT_ENABLED)
|
|
|
+ end
|
|
|
+
|
|
|
local msgRet = Msg.gc.GC_LOGT_TEMPLE_ONECLICK_SWEEP_QUERY
|
|
|
msgRet.state = 0
|
|
|
|
|
|
@@ -1366,6 +1370,9 @@ end
|
|
|
|
|
|
-- 查询一键扫荡奖励
|
|
|
function LostTemple_OneClickSweep_Award(human)
|
|
|
+ if not isOpen(human) then
|
|
|
+ return Broadcast.sendErr(human, Lang.COMMOM_NOT_ENABLED)
|
|
|
+ end
|
|
|
local msgRet = Msg.gc.GC_LOGT_TEMPLE_ONECLICK_SWEEP_AWARD
|
|
|
msgRet.awardArr[0] = 0
|
|
|
|
|
|
@@ -1381,6 +1388,9 @@ end
|
|
|
|
|
|
-- 进行一键扫荡
|
|
|
function LostTemple_OneClickSweep_Do(human)
|
|
|
+ if not isOpen(human) then
|
|
|
+ return Broadcast.sendErr(human, Lang.COMMOM_NOT_ENABLED)
|
|
|
+ end
|
|
|
local isBuyKing = HeroGrowUp.isBuyKing(human)
|
|
|
if not isBuyKing or isBuyKing ~= 1 then
|
|
|
return Broadcast.sendErr(human, Lang.LOST_NO_BUY)
|