diff --git a/src/adv/AdvTask.lua b/src/adv/AdvTask.lua index 38872d5..d408cb3 100644 --- a/src/adv/AdvTask.lua +++ b/src/adv/AdvTask.lua @@ -42,7 +42,7 @@ function AdvTask.bind(Adv) end end checkTaskFunc[Adv.TaskType.KillAll] = function() - if #self.battle.player:getTeam(2) == 0 then + if #self.battle.player:getTeam(2, nil, nil, true) == 0 then return -1 end end diff --git a/src/utils/MathUtil.lua b/src/utils/MathUtil.lua index 44026c3..f49642e 100644 --- a/src/utils/MathUtil.lua +++ b/src/utils/MathUtil.lua @@ -60,9 +60,9 @@ function math.illegalNum(num, min, max) if num < min or num > max then return true end - if string.find(tostring(num), '%.') then - -- 确保不会出现类似1.0这样的数据 - return true - end + -- if string.find(tostring(num), '%.') then + -- -- 确保不会出现类似1.0这样的数据 + -- return true + -- end return false end \ No newline at end of file -- libgit2 0.21.2