From 58ded685a9b5d715d30db1ad753ef36b75e3b099 Mon Sep 17 00:00:00 2001 From: zhanghualin <286990256@qq.com> Date: Thu, 31 Mar 2022 12:35:59 +0800 Subject: [PATCH] 修改判断火花是否为空 --- src/actions/HeroAction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index ec9c723..7fe4bf8 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -1468,7 +1468,7 @@ function _M.trainStartRpc(agent, data) -- 大于等于7的时候需要装备火花才能升 if curLevel >= 7 then - if #sparkInfo == 0 then + if next(sparkInfo) == 0 then return 6 end local ok = false -- libgit2 0.21.2