Commit 2a38270f authored by Tachibana's avatar Tachibana

得得得得得

parent 57813ce8
Pipeline #13548 failed with stages
in 9 minutes and 15 seconds
......@@ -2,7 +2,14 @@
function c17032430.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep2(c,c17032430.ffilter,3,63,false)
--fusion material
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_FUSION_MATERIAL)
e1:SetCondition(c17032430.fscondition)
e1:SetOperation(c17032430.fsoperation)
c:RegisterEffect(e1)
--summon success
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
......@@ -20,9 +27,18 @@ function c17032430.initial_effect(c)
e3:SetOperation(c17032430.ctop)
c:RegisterEffect(e3)
end
function c17032430.ffilter(c,fc,sub,mg,sg)
return (not sg or not sg:IsExists(Card.IsRace,1,c,c:GetRace()))
function c17032430.fscondition(e,g,gc)
local c=e:GetHandler()
if g==nil then return true end
if gc then return false end
return g:IsExists(Card.IsCanBeFusionMaterial,3,nil,c,c) and g:GetClassCount(Card.GetRace)==g:GetCount()
end
function c17032430.fsoperation(e,tp,eg,ep,ev,re,r,rp,gc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local g=eg:FilterSelect(tp,Card.IsCanBeFusionMaterial,3,63,nil,c,c)
Duel.SetFusionMaterial(g)
end
function c17032430.matcheck(e,c)
local ct=c:GetMaterialCount()
local e1=Effect.CreateEffect(c)
......
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