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)
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(c,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonComplete()
end
end
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)
if tc then
if tc:IsType(TYPE_MONSTER) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
else
Duel.DisableShuffleCheck()
Duel.SSet(tp,tc)
end
Duel.ConfirmCards(1-tp,tc)
end
Duel.ShuffleDeck(p)
Duel.SortDecktop(tp,tp,4)
end
end
\ No newline at end of file
......@@ -143,11 +143,23 @@ function c12009046.LinkCondition(f,minc,maxc,gf)
if sg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
local ct=sg:GetCount()
if ct>maxc then return false end
return aux.LCheckGoal(tp,sg,c,minc,ct,gf)
or mg:IsExists(aux.LCheckRecursive,1,sg,tp,sg,mg,c,ct,minc,maxc,gf)
return c12009046.LCheckGoal(tp,sg,c,minc,ct,gf)
or mg:IsExists(c12009046.LCheckRecursive,1,sg,tp,sg,mg,c,ct,minc,maxc,gf)
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)
return
function(e,tp,eg,ep,ev,re,r,rp,chk,c)
......@@ -161,8 +173,8 @@ function c12009046.LinkTarget(f,minc,maxc,gf)
sg:Merge(bg)
local finish=false
while #sg<maxc do
finish=aux.LCheckGoal(tp,sg,c,minc,#sg,gf)
local cg=mg:Filter(aux.LCheckRecursive,sg,tp,sg,mg,c,#sg,minc,maxc,gf)
finish=c12009046.LCheckGoal(tp,sg,c,minc,#sg,gf)
local cg=mg:Filter(c12009046.LCheckRecursive,sg,tp,sg,mg,c,#sg,minc,maxc,gf)
if #cg==0 then break end
local cancel=not finish
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL)
......
......@@ -32,9 +32,6 @@ end
function c12009057.lcheck(g)
return g:GetClassCount(Card.GetLinkRace)==1
end
function c12009057.lcheck(g)
return g:GetClassCount(Card.GetLinkAttribute)==g:GetCount()
end
function c12009057.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
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