Commit 8ecf2c22 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent f753d52c
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
function c65020147.initial_effect(c) function c65020147.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,c65020147.ffilter,2,true) aux.AddFusionProcFunRep(c,c65020147.ffilter,2,true)
aux.AddContactFusionProcedure(c,Card.IsAbleToGraveAsCost,LOCATION_ONFIELD,0,Duel.SendtoGrave,REASON_COST)
--special summon condition --special summon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -9,15 +10,6 @@ function c65020147.initial_effect(c) ...@@ -9,15 +10,6 @@ function c65020147.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetValue(c65020147.splimit) e1:SetValue(c65020147.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--special summon rule
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_EXTRA)
e2:SetCondition(c65020147.sprcon)
e2:SetOperation(c65020147.sprop)
c:RegisterEffect(e2)
--position! --position!
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_POSITION) e3:SetCategory(CATEGORY_POSITION)
...@@ -55,21 +47,8 @@ end ...@@ -55,21 +47,8 @@ end
function c65020147.splimit(e,se,sp,st) function c65020147.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end end
function c65020147.ffilter(c,fc,sub,mg,sg) function c65020147.ffilter(c)
return c:IsFusionType(TYPE_FLIP) return c:IsType(TYPE_FLIP)
end
function c65020147.sprcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c65020147.sprfilter,tp,LOCATION_MZONE,0,2,nil,tp,c)
end
function c65020147.sprfilter(c,tp,fc)
return c:IsFusionType(TYPE_FLIP) and c:IsAbleToGraveAsCost() and c:IsCanBeFusionMaterial(fc) and Duel.GetLocationCountFromEx(tp,tp,fc,c)>0
end
function c65020147.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c65020147.sprfilter,tp,LOCATION_MZONE,0,2,2,nil,tp,c)
Duel.SendtoGrave(g,REASON_COST)
end end
function c65020147.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c65020147.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
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