Commit 68cb2e4f authored by wind2009's avatar wind2009

Fix 械刀婪魔皇断

parent aaadbd9e
...@@ -51,6 +51,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,6 +51,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.selgroup(g,tp,ct) function s.selgroup(g,tp,ct)
if not g:IsExists(Card.IsLocation,1,nil,LOCATION_HAND) then
return g:Select(tp,ct*6,ct*6,nil)
end
if g:FilterCount(Card.IsLocation,nil,LOCATION_EXTRA)<6 then
return g:FilterSelect(tp,Card.IsLocation,ct,ct,nil,LOCATION_HAND)
end
local rg=Group.CreateGroup() local rg=Group.CreateGroup()
while true do while true do
local cct=s.getct(rg) local cct=s.getct(rg)
...@@ -65,7 +71,7 @@ function s.selgroup(g,tp,ct) ...@@ -65,7 +71,7 @@ function s.selgroup(g,tp,ct)
end end
sg=sg-rg sg=sg-rg
end end
local tc=sg:SelectUnselect(rg,tp,finish,not finish,cct,ct) local tc=sg:SelectUnselect(rg,tp,finish,not finish and #rg>0,cct,ct)
if tc==nil then if tc==nil then
if finish then if finish then
break break
......
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