Commit 0b9d9fba6fb3277efcff684d249e3b9934af598d
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,7 +42,7 @@ function AdvTask.bind(Adv) | ||
42 | end | 42 | end |
43 | end | 43 | end |
44 | checkTaskFunc[Adv.TaskType.KillAll] = function() | 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 | return -1 | 46 | return -1 |
47 | end | 47 | end |
48 | end | 48 | end |
src/utils/MathUtil.lua
@@ -60,9 +60,9 @@ function math.illegalNum(num, min, max) | @@ -60,9 +60,9 @@ function math.illegalNum(num, min, max) | ||
60 | if num < min or num > max then | 60 | if num < min or num > max then |
61 | return true | 61 | return true |
62 | end | 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 | return false | 67 | return false |
68 | end | 68 | end |
69 | \ No newline at end of file | 69 | \ No newline at end of file |