Commit 4b5615ff authored by Tachibana's avatar Tachibana

ybb

parent aa96b7c2
...@@ -53,12 +53,10 @@ function c9310043.spfilter2(c,e,tp,m,f,chkf) ...@@ -53,12 +53,10 @@ function c9310043.spfilter2(c,e,tp,m,f,chkf)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
end end
function c9310043.fcheck(tp,sg,fc) function c9310043.fcheck(tp,sg,fc)
if sg:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) then return sg:FilterCount(Card.IsLocation,nil,LOCATION_DECK)<=1 and sg:IsExists(c9310043.chkfilter,1,nil,tp)
return sg:IsExists(c9310043.chkfilter,1,nil) end
return sg:FilterCount(Card.IsLocation,nil,LOCATION_DECK)<=1
end end
function c9310043.gcheck(sg) function c9310043.gcheck(sg)
return sg:FilterCount(Card.IsLocation,nil,LOCATION_DECK)<=1 return sg:FilterCount(Card.IsLocation,nil,LOCATION_DECK)<=1
end end
function c9310043.target(e,tp,eg,ep,ev,re,r,rp,chk) function c9310043.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
...@@ -72,7 +70,7 @@ function c9310043.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -72,7 +70,7 @@ function c9310043.target(e,tp,eg,ep,ev,re,r,rp,chk)
aux.FCheckAdditional=c9310043.fcheck aux.FCheckAdditional=c9310043.fcheck
aux.GCheckAdditional=c9310043.gcheck aux.GCheckAdditional=c9310043.gcheck
end end
res=Duel.IsExistingMatchingCard(c9310043.spfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,nil,chkf) res=Duel.IsExistingMatchingCard(c9310043.spfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
if ce~=nil then if ce~=nil then
...@@ -105,7 +103,7 @@ function c9310043.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,7 +103,7 @@ function c9310043.activate(e,tp,eg,ep,ev,re,r,rp)
aux.FCheckAdditional=nil aux.FCheckAdditional=nil
aux.GCheckAdditional=nil aux.GCheckAdditional=nil
local mg3=nil local mg3=nil
local sg2=Duel.GetMatchingGroup(c9310043.spfilter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,nil,chkf) local sg2=Duel.GetMatchingGroup(c9310043.spfilter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
sg1:Merge(sg2) sg1:Merge(sg2)
local sg3=nil local sg3=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
......
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