Commit 8d6c91c9 authored by Satty's avatar Satty

fix

parent 5bc54f2c
Pipeline #35252 passed with stages
in 73 minutes and 19 seconds
--黄金炼成 亚当 --黄金炼成 亚当
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddSynchroProcedure(c,aux.Tuner(nil),aux.TRUE,1) aux.AddSynchroMixProcedure(c,aux.Tuner(nil),nil,nil,nil,1,99)
c:EnableReviveLimit() c:EnableReviveLimit()
aux.EnablePendulumAttribute(c) aux.EnablePendulumAttribute(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
--无瑕的纯白骑士 --无瑕的纯白骑士
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
......
--O.P.B.A:Riflemen --O.P.B.A:Riflemen
local s,id=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
-- 效果①:无解放召唤 -- 效果①:无解放召唤
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -9,6 +9,7 @@ function cm.initial_effect(c) ...@@ -9,6 +9,7 @@ function cm.initial_effect(c)
e11:SetCode(EVENT_FREE_CHAIN) e11:SetCode(EVENT_FREE_CHAIN)
e11:SetRange(LOCATION_HAND) e11:SetRange(LOCATION_HAND)
e11:SetCountLimit(1,m) e11:SetCountLimit(1,m)
e11:SetCondition(cm.thcon1)
e11:SetTarget(cm.thtg) e11:SetTarget(cm.thtg)
e11:SetOperation(cm.thop) e11:SetOperation(cm.thop)
c:RegisterEffect(e11) c:RegisterEffect(e11)
...@@ -17,10 +18,11 @@ function cm.initial_effect(c) ...@@ -17,10 +18,11 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAINING)
e2:SetCountLimit(1,m+10000000) e2:SetCountLimit(1,m+10000000)
e2:SetCondition(cm.thcon2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e11:Clone() local e3=e11:Clone()
e3:SetDescription(aux.Stringid(m,3)) e3:SetDescription(aux.Stringid(m,3))
e3:SetCondition(cm.thcon) e3:SetCondition(cm.thcon3)
e3:SetCountLimit(1,m+20000000) e3:SetCountLimit(1,m+20000000)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--spsummon --spsummon
...@@ -31,6 +33,15 @@ function cm.initial_effect(c) ...@@ -31,6 +33,15 @@ function cm.initial_effect(c)
e1:SetOperation(cm.op) e1:SetOperation(cm.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.thcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsMainPhase()
end
function cm.thcon2(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp
end
function cm.thcon3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>=3
end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO
end end
...@@ -60,7 +71,4 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +71,4 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(sg,nil,SEQ_DECKTOP,REASON_EFFECT) Duel.SendtoDeck(sg,nil,SEQ_DECKTOP,REASON_EFFECT)
end end
end end
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>=3
end end
\ No newline at end of file
...@@ -31,7 +31,9 @@ function c64831002.costfil(c,e,tp) ...@@ -31,7 +31,9 @@ function c64831002.costfil(c,e,tp)
return c:IsType(TYPE_TUNER) and c:IsAbleToRemoveAsCost() and check==1 and c:IsLevelAbove(1) return c:IsType(TYPE_TUNER) and c:IsAbleToRemoveAsCost() and check==1 and c:IsLevelAbove(1)
end end
function c64831002.synfil(c,e,tp,lv) function c64831002.synfil(c,e,tp,lv)
return c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false) and c:IsSetCard(0x5410) and c:IsType(TYPE_SYNCHRO) and c:GetLevel()==lv+4 local lv2=e:GetHandler():GetLevel()
return c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false) and c:IsSetCard(0x5410) and c:IsType(TYPE_SYNCHRO) and c:GetLevel()==lv+lv2
and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function c64831002.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c64831002.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -44,21 +46,19 @@ function c64831002.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,21 +46,19 @@ function c64831002.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c64831002.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c64831002.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0 end if chk==0 then return e:IsCostChecked() and Duel.IsExistingMatchingCard(c64831002.costfil,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function c64831002.synfil2(c,e,tp,lv) function c64831002.synfil2(c,e,tp,lv)
return c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false) and c:IsSetCard(0x5410) and c:IsType(TYPE_SYNCHRO) and c:IsLevel(lv) return c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false) and c:IsSetCard(0x5410) and c:IsType(TYPE_SYNCHRO) and c:IsLevel(lv)
end end
function c64831002.op(e,tp,eg,ep,ev,re,r,rp) function c64831002.op(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetMZoneCount(tp)<=0 then return end
local lv=e:GetLabel() local lv=e:GetLabel()
local g=Duel.SelectMatchingCard(tp,c64831002.synfil2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,lv) local g=Duel.SelectMatchingCard(tp,c64831002.synfil2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,lv)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,SUMMON_TYPE_SYNCHRO,tp,tp,true,true,POS_FACEUP) Duel.SpecialSummon(g,SUMMON_TYPE_SYNCHRO,tp,tp,true,true,POS_FACEUP)
end end
end end
function c64831002.drcon(e,tp,eg,ep,ev,re,r,rp) function c64831002.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO
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