Commit 33b2e987 authored by Tachibana's avatar Tachibana

ybb

parent 983916b1
Pipeline #10154 passed with stages
in 26 minutes and 34 seconds
No preview for this file type
expansions/pics/66915035.jpg

67.7 KB | W: | H:

expansions/pics/66915035.jpg

62.2 KB | W: | H:

expansions/pics/66915035.jpg
expansions/pics/66915035.jpg
expansions/pics/66915035.jpg
expansions/pics/66915035.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -31,9 +31,9 @@ function c66915034.sumlimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -31,9 +31,9 @@ function c66915034.sumlimit(e,c,sump,sumtype,sumpos,targetp)
end end
function c66915034.fcheck(tp,sg,fc) function c66915034.fcheck(tp,sg,fc)
local ct=Duel.GetFieldGroupCount(tp,LOCATION_SZONE,0) local ct=Duel.GetFieldGroupCount(tp,LOCATION_SZONE,0)
if sg:IsExists(Card.IsLocation,1,nil,LOCATION_EXTRA) then return sg:GetCount()>=3
return sg:IsExists(c66915034.filterchk,1,nil) and #sg>=3 and sg:FilterCount(Card.IsLocation,nil,LOCATION_EXTRA)<=ct end and (not sg:IsExists(Card.IsLocation,1,nil,LOCATION_EXTRA)
return #sg>=3 and sg:FilterCount(Card.IsLocation,nil,LOCATION_EXTRA)<=ct or (sg:IsExists(c66915034.filterchk,1,nil) and sg:FilterCount(Card.IsLocation,nil,LOCATION_EXTRA)<=ct))
end end
function c66915034.filterchk(c) function c66915034.filterchk(c)
return c:IsSummonType(SUMMON_TYPE_FUSION) and c:IsOnField() return c:IsSummonType(SUMMON_TYPE_FUSION) and c:IsOnField()
...@@ -53,10 +53,8 @@ function c66915034.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,10 +53,8 @@ function c66915034.target(e,tp,eg,ep,ev,re,r,rp,chk)
local chkf=tp local chkf=tp
local mg=Duel.GetFusionMaterial(tp) local mg=Duel.GetFusionMaterial(tp)
local mg2=Duel.GetMatchingGroup(c66915034.filter0,tp,LOCATION_EXTRA,0,nil) local mg2=Duel.GetMatchingGroup(c66915034.filter0,tp,LOCATION_EXTRA,0,nil)
if mg:IsExists(c66915034.filterchk,1,nil) and mg2:GetCount()>0 then mg:Merge(mg2)
mg:Merge(mg2) aux.FGoalCheckAdditional=c66915034.fcheck
aux.FGoalCheckAdditional=c66915034.fcheck
end
local res=Duel.IsExistingMatchingCard(c66915034.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,nil,chkf) local res=Duel.IsExistingMatchingCard(c66915034.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,nil,chkf)
aux.FGoalCheckAdditional=nil aux.FGoalCheckAdditional=nil
if not res then if not res then
...@@ -75,12 +73,9 @@ function c66915034.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,12 +73,9 @@ function c66915034.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c66915034.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c66915034.filter1,nil,e)
local mg2=Duel.GetMatchingGroup(c66915034.filter0,tp,LOCATION_EXTRA,0,nil) local mg2=Duel.GetMatchingGroup(c66915034.filter0,tp,LOCATION_EXTRA,0,nil)
if mg1:IsExists(c66915034.filterchk,1,nil) and mg2:GetCount()>0 then mg1:Merge(mg2)
mg1:Merge(mg2) aux.FGoalCheckAdditional=c66915034.fcheck
aux.FGoalCheckAdditional=c66915034.fcheck
end
local sg1=Duel.GetMatchingGroup(c66915034.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c66915034.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
aux.FGoalCheckAdditional=nil
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -90,26 +85,26 @@ function c66915034.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,26 +85,26 @@ function c66915034.activate(e,tp,eg,ep,ev,re,r,rp)
local mf=ce:GetValue() local mf=ce:GetValue()
sg2=Duel.GetMatchingGroup(c66915034.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,mf,chkf) sg2=Duel.GetMatchingGroup(c66915034.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,mf,chkf)
end end
local sg=sg1:Clone() if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
if sg2 then sg:Merge(sg2) end local sg=sg1:Clone()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if sg2 then sg:Merge(sg2) end
local tg=sg:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=tg:GetFirst() local tg=sg:Select(tp,1,1,nil)
if not tc then return end local tc=tg:GetFirst()
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
aux.FGoalCheckAdditional=c66915034.fcheck local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf) tc:SetMaterial(mat1)
aux.FGoalCheckAdditional=nil Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
tc:SetMaterial(mat1) Duel.BreakEffect()
Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
Duel.BreakEffect() else
Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) local mat2=Duel.SelectFusionMaterial(tp,tc,mg2,nil,chkf)
else local fop=ce:GetOperation()
local mat2=Duel.SelectFusionMaterial(tp,tc,mg2,nil,chkf) fop(ce,e,tp,tc,mat2)
local fop=ce:GetOperation() end
fop(ce,e,tp,tc,mat2) tc:CompleteProcedure()
end end
tc:CompleteProcedure() aux.FGoalCheckAdditional=nil
end end
function c66915034.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c66915034.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0x1374) return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0x1374)
......
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