Commit 203a96fb authored by songtongtong's avatar songtongtong

function aux.GetMustMaterialGroup replace

parent 38486850
Pipeline #21816 passed with stages
in 34 minutes
...@@ -67,7 +67,7 @@ function c1110161.LinkCondition0(f,minc,maxc,gf) ...@@ -67,7 +67,7 @@ function c1110161.LinkCondition0(f,minc,maxc,gf)
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler() local tp=c:GetControler()
local mg=c1110161.GetLinkMaterials(tp,f,c) local mg=c1110161.GetLinkMaterials(tp,f,c)
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(aux.LCheckGoal,min,max,tp,c,gf) return mg:CheckSubGroup(aux.LCheckGoal,min,max,tp,c,gf)
...@@ -77,7 +77,7 @@ function c1110161.LinkTarget0(f,min,max,gf) ...@@ -77,7 +77,7 @@ function c1110161.LinkTarget0(f,min,max,gf)
return return
function(e,tp,eg,ep,ev,re,r,rp,chk,c) function(e,tp,eg,ep,ev,re,r,rp,chk,c)
local mg=c1110161.GetLinkMaterials(tp,f,c) local mg=c1110161.GetLinkMaterials(tp,f,c)
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.GetCurrentChain()==0 local cancel=Duel.GetCurrentChain()==0
...@@ -122,7 +122,7 @@ function c1110161.LinkCondition(f,minc,maxc,gf) ...@@ -122,7 +122,7 @@ function c1110161.LinkCondition(f,minc,maxc,gf)
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler() local tp=c:GetControler()
local mg=aux.GetLinkMaterials(tp,f,c) local mg=aux.GetLinkMaterials(tp,f,c)
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(c1110161.LCheckGoal,min,max,tp,c,gf) return mg:CheckSubGroup(c1110161.LCheckGoal,min,max,tp,c,gf)
...@@ -132,7 +132,7 @@ function c1110161.LinkTarget(f,minc,maxc,gf) ...@@ -132,7 +132,7 @@ function c1110161.LinkTarget(f,minc,maxc,gf)
return return
function(e,tp,eg,ep,ev,re,r,rp,chk,c) function(e,tp,eg,ep,ev,re,r,rp,chk,c)
local mg=aux.GetLinkMaterials(tp,f,c) local mg=aux.GetLinkMaterials(tp,f,c)
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.GetCurrentChain()==0 local cancel=Duel.GetCurrentChain()==0
......
...@@ -72,7 +72,7 @@ function c1156015.LinkCondition(f,minc,maxc,gf) ...@@ -72,7 +72,7 @@ function c1156015.LinkCondition(f,minc,maxc,gf)
if not aux.LConditionFilter(lmat,f,c) then return false end if not aux.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(aux.LCheckGoal,minc,maxc,tp,c,gf,lmat) return mg:CheckSubGroup(aux.LCheckGoal,minc,maxc,tp,c,gf,lmat)
...@@ -98,7 +98,7 @@ function c1156015.LinkTarget(f,minc,maxc,gf) ...@@ -98,7 +98,7 @@ function c1156015.LinkTarget(f,minc,maxc,gf)
if not aux.LConditionFilter(lmat,f,c) then return false end if not aux.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.IsSummonCancelable() local cancel=Duel.IsSummonCancelable()
......
...@@ -48,7 +48,7 @@ function c1156605.LinkCondition(f,minc,maxc,gf) ...@@ -48,7 +48,7 @@ function c1156605.LinkCondition(f,minc,maxc,gf)
if not aux.LConditionFilter(lmat,f,c) then return false end if not aux.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(c1156605.LCheckGoal,minc,maxc,tp,c,gf,lmat) return mg:CheckSubGroup(c1156605.LCheckGoal,minc,maxc,tp,c,gf,lmat)
...@@ -74,7 +74,7 @@ function c1156605.LinkTarget(f,minc,maxc,gf) ...@@ -74,7 +74,7 @@ function c1156605.LinkTarget(f,minc,maxc,gf)
if not aux.LConditionFilter(lmat,f,c) then return false end if not aux.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.IsSummonCancelable() local cancel=Duel.IsSummonCancelable()
......
...@@ -90,7 +90,7 @@ function cm.LinkCondition(f,minc,maxc,gf) ...@@ -90,7 +90,7 @@ function cm.LinkCondition(f,minc,maxc,gf)
if not aux.LConditionFilter(lmat,f,c) then return false end if not aux.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(aux.LCheckGoal,minc,maxc,tp,c,gf,lmat) return mg:CheckSubGroup(aux.LCheckGoal,minc,maxc,tp,c,gf,lmat)
...@@ -116,7 +116,7 @@ function cm.LinkTarget(f,minc,maxc,gf) ...@@ -116,7 +116,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if not aux.LConditionFilter(lmat,f,c) then return false end if not aux.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.IsSummonCancelable() local cancel=Duel.IsSummonCancelable()
......
...@@ -75,7 +75,7 @@ function cm.LinkCondition(f,minc,maxc,gf) ...@@ -75,7 +75,7 @@ function cm.LinkCondition(f,minc,maxc,gf)
if not cm.LConditionFilter(lmat,f,c) then return false end if not cm.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(cm.LCheckGoal,minc,maxc,tp,c,gf,lmat) return mg:CheckSubGroup(cm.LCheckGoal,minc,maxc,tp,c,gf,lmat)
...@@ -100,7 +100,7 @@ function cm.LinkTarget(f,minc,maxc,gf) ...@@ -100,7 +100,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if not cm.LConditionFilter(lmat,f,c) then return false end if not cm.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.IsSummonCancelable() local cancel=Duel.IsSummonCancelable()
......
...@@ -95,7 +95,7 @@ function cm.LinkTarget(f,minc,maxc,gf) ...@@ -95,7 +95,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if not cm.ConditionFilter(lmat,f,c,e) then return false end if not cm.ConditionFilter(lmat,f,c,e) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=Duel.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.IsSummonCancelable() local cancel=Duel.IsSummonCancelable()
......
...@@ -93,7 +93,7 @@ function cm.linkcondition(f,minc,maxc,gf) ...@@ -93,7 +93,7 @@ function cm.linkcondition(f,minc,maxc,gf)
if not cm.ConditionFilter(lmat,f,c,e) then return false end if not cm.ConditionFilter(lmat,f,c,e) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(cm.check,minc,maxc,tp,c,gf,lmat) return mg:CheckSubGroup(cm.check,minc,maxc,tp,c,gf,lmat)
...@@ -118,7 +118,7 @@ function cm.linktarget(f,minc,maxc,gf) ...@@ -118,7 +118,7 @@ function cm.linktarget(f,minc,maxc,gf)
if not cm.ConditionFilter(lmat,f,c,e) then return false end if not cm.ConditionFilter(lmat,f,c,e) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.IsSummonCancelable() local cancel=Duel.IsSummonCancelable()
......
...@@ -63,7 +63,7 @@ function cm.linkcondition(f,minc,maxc,gf) ...@@ -63,7 +63,7 @@ function cm.linkcondition(f,minc,maxc,gf)
if not cm.ConditionFilter(lmat,f,c,e) then return false end if not cm.ConditionFilter(lmat,f,c,e) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(cm.check,minc,maxc,tp,c,gf,lmat) return mg:CheckSubGroup(cm.check,minc,maxc,tp,c,gf,lmat)
...@@ -88,7 +88,7 @@ function cm.linktarget(f,minc,maxc,gf) ...@@ -88,7 +88,7 @@ function cm.linktarget(f,minc,maxc,gf)
if not cm.ConditionFilter(lmat,f,c,e) then return false end if not cm.ConditionFilter(lmat,f,c,e) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.IsSummonCancelable() local cancel=Duel.IsSummonCancelable()
......
...@@ -2358,7 +2358,7 @@ function cm.LinkCondition(f,minc,maxc,gf,code) ...@@ -2358,7 +2358,7 @@ function cm.LinkCondition(f,minc,maxc,gf,code)
if not aux.LConditionFilter(lmat,f,c,e) then return false end if not aux.LConditionFilter(lmat,f,c,e) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(aux.LCheckGoal,minc,maxc,tp,c,gf,lmat) return mg:CheckSubGroup(aux.LCheckGoal,minc,maxc,tp,c,gf,lmat)
...@@ -2383,7 +2383,7 @@ function cm.LinkTarget(f,minc,maxc,gf) ...@@ -2383,7 +2383,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if not cm.LConditionFilter(lmat,f,c,e) then return false end if not cm.LConditionFilter(lmat,f,c,e) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.IsSummonCancelable() local cancel=Duel.IsSummonCancelable()
......
...@@ -100,7 +100,7 @@ function cm.LinkCondition(f,minc,maxc,gf) ...@@ -100,7 +100,7 @@ function cm.LinkCondition(f,minc,maxc,gf)
if not cm.LConditionFilter(lmat,f,c) then return false end if not cm.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(cm.LCheckGoal,minc,maxc,tp,c,gf,lmat) return mg:CheckSubGroup(cm.LCheckGoal,minc,maxc,tp,c,gf,lmat)
...@@ -125,7 +125,7 @@ function cm.LinkTarget(f,minc,maxc,gf) ...@@ -125,7 +125,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if not cm.LConditionFilter(lmat,f,c) then return false end if not cm.LConditionFilter(lmat,f,c) then return false end
mg:AddCard(lmat) mg:AddCard(lmat)
end end
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.GetCurrentChain()==0 local cancel=Duel.GetCurrentChain()==0
......
...@@ -58,7 +58,7 @@ function cm.LinkCondition(f,minc,maxc,gf) ...@@ -58,7 +58,7 @@ function cm.LinkCondition(f,minc,maxc,gf)
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler() local tp=c:GetControler()
local mg=cm.GetLinkMaterials(tp,f,c) local mg=cm.GetLinkMaterials(tp,f,c)
local sg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local sg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if sg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if sg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
local ct=sg:GetCount() local ct=sg:GetCount()
if ct>maxc then return false end if ct>maxc then return false end
...@@ -83,7 +83,7 @@ function cm.LinkTarget(f,minc,maxc,gf) ...@@ -83,7 +83,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
return return
function(e,tp,eg,ep,ev,re,r,rp,chk,c) function(e,tp,eg,ep,ev,re,r,rp,chk,c)
local mg=cm.GetLinkMaterials(tp,f,c) local mg=cm.GetLinkMaterials(tp,f,c)
local bg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local bg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if #bg>0 then if #bg>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL)
bg:Select(tp,#bg,#bg,nil) bg:Select(tp,#bg,#bg,nil)
......
...@@ -64,7 +64,7 @@ function c72409110.LinkCondition(f,minc,maxc,gf) ...@@ -64,7 +64,7 @@ function c72409110.LinkCondition(f,minc,maxc,gf)
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler() local tp=c:GetControler()
local mg=aux.GetLinkMaterials(tp,f,c) local mg=aux.GetLinkMaterials(tp,f,c)
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg) Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(c72409110.LCheckGoal,min,max,tp,c,gf) return mg:CheckSubGroup(c72409110.LCheckGoal,min,max,tp,c,gf)
...@@ -74,7 +74,7 @@ function c72409110.LinkTarget(f,minc,maxc,gf) ...@@ -74,7 +74,7 @@ function c72409110.LinkTarget(f,minc,maxc,gf)
return return
function(e,tp,eg,ep,ev,re,r,rp,chk,c) function(e,tp,eg,ep,ev,re,r,rp,chk,c)
local mg=aux.GetLinkMaterials(tp,f,c) local mg=aux.GetLinkMaterials(tp,f,c)
local fg=aux.GetMustMaterialGroup(tp,EFFECT_MUST_BE_LMATERIAL) local fg=Duel.GetMustMaterial(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 cancel=Duel.GetCurrentChain()==0 local cancel=Duel.GetCurrentChain()==0
......
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