Commit 5768fa34 authored by 聖園ミカ's avatar 聖園ミカ 🐟

hop

parent cf530e12
Pipeline #31081 passed with stages
in 26 minutes and 48 seconds
...@@ -58,6 +58,7 @@ function cm.initial_effect(c) ...@@ -58,6 +58,7 @@ function cm.initial_effect(c)
end end
cm.SetCard_SCP=true cm.SetCard_SCP=true
cm.fusion_effect=true
function cm.ctcfilter1(c,tp) function cm.ctcfilter1(c,tp)
return c:IsFaceup() and c.SetCard_SCP and c:IsControler(tp) return c:IsFaceup() and c.SetCard_SCP and c:IsControler(tp)
...@@ -137,7 +138,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -137,7 +138,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
tc:SetMaterial(nil) tc:SetMaterial(nil)
Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) if Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)~=0 then
tc:CompleteProcedure() tc:CompleteProcedure()
end
end end
end end
\ No newline at end of file
...@@ -125,12 +125,12 @@ function cm.gytg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -125,12 +125,12 @@ function cm.gytg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return #sg>0 end if chk==0 then return #sg>0 end
Duel.SetTargetCard(sg) Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,sg,sg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,sg,sg:GetCount(),0,0)
Duel.SetChainLimit(cm.limit(sg)) local fg=sg:Filter(Card.IsControler,nil,1-tp)
Duel.SetChainLimit(cm.limit(fg))
end end
function cm.limit(g) function cm.limit(g)
return function (e,ep,tp) return function (e,ep,tp)
local sg=g:Filter(Card.IsControler,nil,1-tp) return not g:IsContains(e:GetHandler())
return not sg:IsContains(e:GetHandler())
end end
end end
function cm.gyop(e,tp,eg,ep,ev,re,r,rp) function cm.gyop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -42,6 +42,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,6 +42,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local sc=g:GetFirst() local sc=g:GetFirst()
if not sc then return end if not sc then return end
sc:SetMaterial(nil) sc:SetMaterial(nil)
Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) if Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)~=0 then
sc:CompleteProcedure()
end
end end
end end
\ No newline at end of file
...@@ -90,6 +90,8 @@ function cm.fsop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,6 +90,8 @@ function cm.fsop(e,tp,eg,ep,ev,re,r,rp)
local sc=g:GetFirst() local sc=g:GetFirst()
if not sc then return end if not sc then return end
sc:SetMaterial(nil) sc:SetMaterial(nil)
Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) if Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)~=0 then
sc:CompleteProcedure()
end
end end
end end
\ No newline at end of file
...@@ -78,8 +78,11 @@ function cm.fsop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,8 +78,11 @@ function cm.fsop(e,tp,eg,ep,ev,re,r,rp)
local sc=sg2:GetFirst() local sc=sg2:GetFirst()
while sc do while sc do
sc:SetMaterial(nil) sc:SetMaterial(nil)
if Duel.SpecialSummonStep(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) then
sc:CompleteProcedure()
end
sc=sg2:GetNext() sc=sg2:GetNext()
end end
Duel.SpecialSummon(sg2,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonComplete()
end end
end end
\ No newline at end of file
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