Commit 4ee86e77 authored by wind2009's avatar wind2009

Fix Drake_Solve

parent e3a0a300
...@@ -249,7 +249,7 @@ function Auxiliary.Drake_Solve(tp,g,maxct,minct) ...@@ -249,7 +249,7 @@ function Auxiliary.Drake_Solve(tp,g,maxct,minct)
tte:UseCountLimit(tp) tte:UseCountLimit(tp)
end end
end end
else elseif #exg>0 then
local st=et local st=et
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RESOLVECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RESOLVECARD)
local reg=exg:SelectSubGroup(tp,s.gcheck,false,st,st,tp) local reg=exg:SelectSubGroup(tp,s.gcheck,false,st,st,tp)
......
...@@ -232,7 +232,7 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp) ...@@ -232,7 +232,7 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp)
Duel.Overlay(c,Group.FromCards(tc)) Duel.Overlay(c,Group.FromCards(tc))
end end
end end
function Auxiliary.Drake_Solve(tp,g,maxct,minct) function Auxiliary.Drake_Solve(tp,g,maxct,minct,chkg)
if g:GetCount()<maxct and g:GetCount()>=minct and maxct==minct+2 then if g:GetCount()<maxct and g:GetCount()>=minct and maxct==minct+2 then
local et=maxct-g:GetCount() local et=maxct-g:GetCount()
local exg=g:Filter(Card.IsHasEffect,nil,81096431,tp) local exg=g:Filter(Card.IsHasEffect,nil,81096431,tp)
...@@ -245,7 +245,7 @@ function Auxiliary.Drake_Solve(tp,g,maxct,minct) ...@@ -245,7 +245,7 @@ function Auxiliary.Drake_Solve(tp,g,maxct,minct)
tte:UseCountLimit(tp) tte:UseCountLimit(tp)
end end
end end
else elseif #exg>0 then
local st=et local st=et
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RESOLVECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RESOLVECARD)
local reg=exg:SelectSubGroup(tp,s.gcheck,false,st,st,tp) local reg=exg:SelectSubGroup(tp,s.gcheck,false,st,st,tp)
......
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