Commit 0b9d9fba6fb3277efcff684d249e3b9934af598d

Authored by zhouhaihai
1 parent 58f3a42c

冒险任务 获取敌人数量错误

Showing 2 changed files with 5 additions and 5 deletions   Show diff stats
src/adv/AdvTask.lua
... ... @@ -42,7 +42,7 @@ function AdvTask.bind(Adv)
42 42 end
43 43 end
44 44 checkTaskFunc[Adv.TaskType.KillAll] = function()
45   - if #self.battle.player:getTeam(2) == 0 then
  45 + if #self.battle.player:getTeam(2, nil, nil, true) == 0 then
46 46 return -1
47 47 end
48 48 end
... ...
src/utils/MathUtil.lua
... ... @@ -60,9 +60,9 @@ function math.illegalNum(num, min, max)
60 60 if num < min or num > max then
61 61 return true
62 62 end
63   - if string.find(tostring(num), '%.') then
64   - -- 确保不会出现类似1.0这样的数据
65   - return true
66   - end
  63 + -- if string.find(tostring(num), '%.') then
  64 + -- -- 确保不会出现类似1.0这样的数据
  65 + -- return true
  66 + -- end
67 67 return false
68 68 end
69 69 \ No newline at end of file
... ...