Commit 36a0c49f authored by sidschingis's avatar sidschingis

changed chain Material

(for サイバネティック・フュージョン・サポート GS06-JP014 )
parent 2803adff
...@@ -26,7 +26,8 @@ function c24094653.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,7 +26,8 @@ function c24094653.target(e,tp,eg,ep,ev,re,r,rp,chk)
if ce~=nil then if ce~=nil then
local fgroup=ce:GetTarget() local fgroup=ce:GetTarget()
local mg2=fgroup(ce,e,tp) local mg2=fgroup(ce,e,tp)
res=Duel.IsExistingMatchingCard(c24094653.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,chkf) local filter=ce:GetCost()
res=Duel.IsExistingMatchingCard(filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,chkf))
end end
end end
return res return res
...@@ -42,8 +43,9 @@ function c24094653.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,8 +43,9 @@ function c24094653.activate(e,tp,eg,ep,ev,re,r,rp)
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
if ce~=nil then if ce~=nil then
local fgroup=ce:GetTarget() local fgroup=ce:GetTarget()
local filter=ce:GetCost()
mg2=fgroup(ce,e,tp) mg2=fgroup(ce,e,tp)
sg2=Duel.GetMatchingGroup(c24094653.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,chkf) sg2=Duel.GetMatchingGroup(filter,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,chkf)
end end
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
local sg=sg1:Clone() local sg=sg1:Clone()
......
...@@ -33,7 +33,8 @@ function c33550694.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,8 @@ function c33550694.target(e,tp,eg,ep,ev,re,r,rp,chk)
if ce~=nil then if ce~=nil then
local fgroup=ce:GetTarget() local fgroup=ce:GetTarget()
local mg2=fgroup(ce,e,tp) local mg2=fgroup(ce,e,tp)
res=Duel.IsExistingMatchingCard(c33550694.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,chkf) local filter=ce:GetCost()
res=Duel.IsExistingMatchingCard(filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,chkf)
end end
end end
return res return res
...@@ -50,8 +51,9 @@ function c33550694.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,8 +51,9 @@ function c33550694.operation(e,tp,eg,ep,ev,re,r,rp)
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
if ce~=nil then if ce~=nil then
local fgroup=ce:GetTarget() local fgroup=ce:GetTarget()
local filter=ce:GetCost()
mg2=fgroup(ce,e,tp) mg2=fgroup(ce,e,tp)
sg2=Duel.GetMatchingGroup(c33550694.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,chkf) sg2=Duel.GetMatchingGroup(filter,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,chkf)
end end
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
local sg=sg1:Clone() local sg=sg1:Clone()
......
...@@ -27,10 +27,15 @@ function c39980304.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -27,10 +27,15 @@ function c39980304.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetCost(c39980304.chain_filter)
e1:SetTarget(c39980304.chain_target) e1:SetTarget(c39980304.chain_target)
e1:SetOperation(c39980304.chain_operation) e1:SetOperation(c39980304.chain_operation)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c39980304.chain_filter(c,e,tp,m,chkf)
return c:IsType(TYPE_FUSION) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
and c:CheckFusionMaterial(m,nil,chkf)
end
function c39980304.filter(c,e) function c39980304.filter(c,e)
return c:IsCanBeFusionMaterial() and c:IsAbleToRemove() and not c:IsImmuneToEffect(e) return c:IsCanBeFusionMaterial() and c:IsAbleToRemove() and not c:IsImmuneToEffect(e)
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