Commit a76b8dc5 authored by 聖園ミカ's avatar 聖園ミカ 🐟

pic

parent 76920559
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
local m=17243415 local m=17243415
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
c:SetSPSummonOnce(m)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,cm.matfilter,2,true) aux.AddFusionProcFunRep(c,cm.matfilter,2,true)
......
...@@ -31,7 +31,6 @@ function s.initial_effect(c) ...@@ -31,7 +31,6 @@ function s.initial_effect(c)
e3:SetCode(EVENT_CHAINING) e3:SetCode(EVENT_CHAINING)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,id+20000) e3:SetCountLimit(1,id+20000)
e3:SetCondition(s.chcon)
e3:SetTarget(s.chtg) e3:SetTarget(s.chtg)
e3:SetOperation(s.chop) e3:SetOperation(s.chop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -89,11 +88,6 @@ end ...@@ -89,11 +88,6 @@ end
function s.dsfilter(c) function s.dsfilter(c)
return c:IsType(TYPE_PENDULUM) and c:IsFaceup() return c:IsType(TYPE_PENDULUM) and c:IsFaceup()
end end
function s.chcon(e,tp,eg,ep,ev,re,r,rp)
local rep=re:GetOperation()
if not rep then return true end
return (re:IsActiveType(TYPE_SPELL) or re:IsActiveType(TYPE_TRAP))
end
function s.chtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.chtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.dsfilter,rp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.dsfilter,rp,0,LOCATION_ONFIELD,1,nil) end
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