Commit 5443d9a2 authored by GuGu's avatar GuGu

Update c20229.lua 更新召唤手续

parent d1da37ef
Pipeline #35284 passed with stage
in 16 seconds
--白玉潇潇✿魂魄妖梦
function c20229.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsSetCard,0x208),1)
c:EnableReviveLimit()
--synchro summon
aux.AddSynchroMixProcedure(c,c20229.matfilter1,nil,nil,c20229.matfilter2,1,99)
local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(20229,0))
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_SPSUMMON_PROC)
e0:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e0:SetCode(EFFECT_SYNCHRO_LEVEL_EX)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e0:SetRange(LOCATION_EXTRA)
e0:SetCondition(c20229.spcon)
e0:SetOperation(c20229.spop)
e0:SetValue(SUMMON_TYPE_SYNCHRO)
e0:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e0:SetTarget(c20229.syntg)
e0:SetValue(c20229.synval)
c:RegisterEffect(e0)
--wan jian gui zong !
local e1=Effect.CreateEffect(c)
......@@ -38,28 +36,21 @@ function c20229.initial_effect(c)
e3:SetOperation(c20229.spop2)
c:RegisterEffect(e3)
end
function c20229.sprfilter1(c,tp,syn)
return c:IsFaceup() and c:IsType(TYPE_TUNER) and c:GetSynchroLevel(syn)==2
and Duel.IsExistingMatchingCard(c20229.sprfilter2,tp,LOCATION_MZONE,0,1,c,syn) and c:IsCanBeSynchroMaterial(syn)
function c20229.matfilter1(c,syncard)
return c:IsTuner(syncard) or c:IsType(TYPE_LINK) and c:IsSetCard(0x713)
end
function c20229.sprfilter2(c,syn)
return c:IsFaceup() and c:IsType(TYPE_LINK) and c:IsSetCard(0x713)
function c20229.matfilter2(c,syncard)
return (c:IsNotTuner(syncard) or c:IsType(TYPE_LINK) and c:IsSetCard(0x713)) and c:IsSetCard(0x208)
end
function c20229.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2
and Duel.IsExistingMatchingCard(c20229.sprfilter1,tp,LOCATION_MZONE,0,1,nil,tp,c)
function c20229.syntg(e,c)
return c:IsType(TYPE_LINK) and c:IsSetCard(0x713)
end
function c20229.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,c20229.sprfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g2=Duel.SelectMatchingCard(tp,c20229.sprfilter2,tp,LOCATION_MZONE,0,1,1,g1,c)
g1:Merge(g2)
Duel.SendtoGrave(g1,REASON_COST+REASON_SYNCHRO)
c:SetMaterial(g1)
c:CompleteProcedure()
function c20229.synval(e,syncard)
if e:GetHandler()==syncard then
return 4
else
return 0
end
end
function c20229.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
......@@ -80,12 +71,12 @@ end
function c20229.eqop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local sg=Duel.SelectMatchingCard(tp, c20229.eqfilter, tp, LOCATION_SZONE, LOCATION_SZONE, 1, 12, nil, tc)
local ec=sg:GetFirst()
while ec and ec:CheckEquipTarget(tc) do
Duel.Equip(tp,ec,tc)
ec=sg:GetNext()
end
local sg=Duel.SelectMatchingCard(tp, c20229.eqfilter, tp, LOCATION_SZONE, LOCATION_SZONE, 1, 12, nil, tc)
local ec=sg:GetFirst()
while ec and ec:CheckEquipTarget(tc) do
Duel.Equip(tp,ec,tc)
ec=sg:GetNext()
end
end
end
function c20229.cfilter2(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