Commit aaaa4128 authored by mercury233's avatar mercury233 Committed by GitHub

fix (#1121)

parents d3c602a4 1eb60795
...@@ -1868,7 +1868,8 @@ function Auxiliary.LinkTarget(f,min,max,gf) ...@@ -1868,7 +1868,8 @@ function Auxiliary.LinkTarget(f,min,max,gf)
local fg=Auxiliary.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Auxiliary.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL)
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL)
local sg=mg:SelectSubGroup(tp,Auxiliary.LCheckGoal,true,min,max,tp,c,gf) local cancel=Duel.GetCurrentChain()==0
local sg=mg:SelectSubGroup(tp,Auxiliary.LCheckGoal,cancel,min,max,tp,c,gf)
if sg then if sg then
sg:KeepAlive() sg:KeepAlive()
e:SetLabelObject(sg) e:SetLabelObject(sg)
...@@ -2153,4 +2154,4 @@ function Group.SelectSubGroup(g,tp,f,cancelable,min,max,...) ...@@ -2153,4 +2154,4 @@ function Group.SelectSubGroup(g,tp,f,cancelable,min,max,...)
else else
return nil return nil
end end
end end
\ No newline at end of file
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