Commit 743d06b5 authored by salix5's avatar salix5

fix Group.CheckSubGroup(), Group.SelectSubGroup()

parent cb1aa1be
......@@ -963,8 +963,8 @@ function Auxiliary.CheckGroupRecursiveCapture(c,sg,g,f,min,max,ext_params)
return res
end
function Group.CheckSubGroup(g,f,min,max,...)
local min=min or 1
local max=max or #g
min=min or 1
max=max or #g
if min>max then return false end
local ext_params={...}
local sg=Duel.GrabSelectedCard()
......@@ -980,8 +980,8 @@ function Group.CheckSubGroup(g,f,min,max,...)
end
function Group.SelectSubGroup(g,tp,f,cancelable,min,max,...)
Auxiliary.SubGroupCaptured=Group.CreateGroup()
local min=min or 1
local max=max or #g
min=min or 1
max=max or #g
local ext_params={...}
local sg=Group.CreateGroup()
local fg=Duel.GrabSelectedCard()
......
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