Commit 0881385c authored by mercury233's avatar mercury233 Committed by GitHub

skip synchro selection when full mat group is provided (#3123)

parent 4a71a276
......@@ -238,6 +238,7 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
if Duel.IsPlayerAffectedByEffect(tp,8173184) then
Duel.RegisterFlagEffect(tp,8173184+1,0,0,1)
end
local cancel=Duel.IsSummonCancelable()
local g=Group.CreateGroup()
local mg
local mgchk=false
......@@ -245,6 +246,13 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
if mg1 then
mg=mg1:Filter(Card.IsCanBeSynchroMaterial,nil,c)
mgchk=true
if min and min==max and #mg==#mg1 and #mg==min+1 and not cancel then
g:Merge(mg)
g:KeepAlive()
e:SetLabelObject(g)
Duel.ResetFlagEffect(tp,8173184+1)
return true
end
else
mg=Auxiliary.GetSynMaterials(tp,c)
end
......@@ -253,7 +261,6 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
local c2
local c3
local g4=Group.CreateGroup()
local cancel=Duel.IsSummonCancelable()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL)
c1=mg:Filter(Auxiliary.SynMixFilter1,nil,f1,f2,f3,f4,minc,maxc,c,mg,smat,gc,mgchk,goalchk):SelectUnselect(g,tp,false,cancel,1,1)
if not c1 then goto SynMixTargetSelectCancel end
......
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