Commit 8881fdf3 authored by TanakaKotoha's avatar TanakaKotoha

wadashimo

parent 5ffef6f4
Pipeline #634 passed with stages
in 42 minutes and 24 seconds
...@@ -79,6 +79,7 @@ function c10909007.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,6 +79,7 @@ function c10909007.spop(e,tp,eg,ep,ev,re,r,rp)
if tc and tc:IsRelateToEffect(e) and c:IsRelateToEffect(e) and not Duel.IsPlayerAffectedByEffect(tp,59822133) then if tc and tc:IsRelateToEffect(e) and c:IsRelateToEffect(e) and not Duel.IsPlayerAffectedByEffect(tp,59822133) then
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonComplete()
end end
end end
function c10909007.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c10909007.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -106,11 +106,11 @@ function c12009044.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,11 +106,11 @@ function c12009044.setop(e,tp,eg,ep,ev,re,r,rp)
if tc then if tc then
if tc:IsType(TYPE_MONSTER) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) if tc:IsType(TYPE_MONSTER) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
else else
Duel.DisableShuffleCheck()
Duel.SSet(tp,tc) Duel.SSet(tp,tc)
end end
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
end end
Duel.ShuffleDeck(p)
Duel.SortDecktop(tp,tp,4) Duel.SortDecktop(tp,tp,4)
end end
end end
\ No newline at end of file
...@@ -143,11 +143,23 @@ function c12009046.LinkCondition(f,minc,maxc,gf) ...@@ -143,11 +143,23 @@ function c12009046.LinkCondition(f,minc,maxc,gf)
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
return aux.LCheckGoal(tp,sg,c,minc,ct,gf) return c12009046.LCheckGoal(tp,sg,c,minc,ct,gf)
or mg:IsExists(aux.LCheckRecursive,1,sg,tp,sg,mg,c,ct,minc,maxc,gf) or mg:IsExists(c12009046.LCheckRecursive,1,sg,tp,sg,mg,c,ct,minc,maxc,gf)
end end
end end
-- --
function c12009046.LCheckGoal(tp,sg,lc,minc,ct,gf)
return ct>=minc and sg:CheckWithSumEqual(aux.GetLinkCount,lc:GetLink(),ct,ct) and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and (not gf or gf(sg))
end
function c12009046.LCheckRecursive(c,tp,sg,mg,lc,ct,minc,maxc,gf)
sg:AddCard(c)
ct=ct+1
local res=c12009046.LCheckGoal(tp,sg,lc,minc,ct,gf)
or (ct<maxc and mg:IsExists(c12009046.LCheckRecursive,1,sg,tp,sg,mg,lc,ct,minc,maxc,gf))
sg:RemoveCard(c)
ct=ct-1
return res
end
function c12009046.LinkTarget(f,minc,maxc,gf) function c12009046.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)
...@@ -161,8 +173,8 @@ function c12009046.LinkTarget(f,minc,maxc,gf) ...@@ -161,8 +173,8 @@ function c12009046.LinkTarget(f,minc,maxc,gf)
sg:Merge(bg) sg:Merge(bg)
local finish=false local finish=false
while #sg<maxc do while #sg<maxc do
finish=aux.LCheckGoal(tp,sg,c,minc,#sg,gf) finish=c12009046.LCheckGoal(tp,sg,c,minc,#sg,gf)
local cg=mg:Filter(aux.LCheckRecursive,sg,tp,sg,mg,c,#sg,minc,maxc,gf) local cg=mg:Filter(c12009046.LCheckRecursive,sg,tp,sg,mg,c,#sg,minc,maxc,gf)
if #cg==0 then break end if #cg==0 then break end
local cancel=not finish local cancel=not finish
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL)
......
...@@ -32,9 +32,6 @@ end ...@@ -32,9 +32,6 @@ end
function c12009057.lcheck(g) function c12009057.lcheck(g)
return g:GetClassCount(Card.GetLinkRace)==1 return g:GetClassCount(Card.GetLinkRace)==1
end end
function c12009057.lcheck(g)
return g:GetClassCount(Card.GetLinkAttribute)==g:GetCount()
end
function c12009057.thcon(e,tp,eg,ep,ev,re,r,rp) function c12009057.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end 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