Commit 3ed07295 authored by xiaoye's avatar xiaoye

Update vgfuncLib.lua

parent d530b735
......@@ -906,7 +906,7 @@ end
function Group.Every(g, f, except, ...)
local ext_params = {...}
except = VgF.GetValueType(except) == "Card" and Group.FromCards(except) or except
return g:Filter(f, except, table.unpack(ext_params)):GetCount() == g:GetCount() - except:GetCount()
return g:Filter(f, except, table.unpack(ext_params)):GetCount() == g:GetCount() - (except and except:GetCount() or 0)
end
function Group.CheckSubGroup(g, f, min, max, ...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment