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

byd

parent a6ea2ebe
Pipeline #30386 passed with stages
in 28 minutes and 28 seconds
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
local m=11600117 local m=11600117
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
-- --
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -16,18 +16,18 @@ function cm.initial_effect(c) ...@@ -16,18 +16,18 @@ function cm.initial_effect(c)
e1:SetTarget(cm.tg1) e1:SetTarget(cm.tg1)
e1:SetOperation(cm.op1) e1:SetOperation(cm.op1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
-- --
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1)) e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,m-10000000) e2:SetCountLimit(1,m-10000000)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(cm.tg2) e2:SetTarget(cm.tg2)
e2:SetOperation(cm.op2) e2:SetOperation(cm.op2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.con1(e,tp,eg,ep,ev,re,r,rp) function cm.con1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
...@@ -130,7 +130,7 @@ function cm.splimit(e,c) ...@@ -130,7 +130,7 @@ function cm.splimit(e,c)
return not c:IsSetCard(0x3540) and c:IsLocation(LOCATION_EXTRA) return not c:IsSetCard(0x3540) and c:IsLocation(LOCATION_EXTRA)
end end
function cm.ter2(c) function cm.ter2(c)
return c:IsSetCard(0x3540) and c:IsAbleToHand() return c:IsSetCard(0x3541) and c:IsAbleToHand()
end end
function cm.tg2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.ter2,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.ter2,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -10,10 +10,10 @@ function cm.initial_effect(c) ...@@ -10,10 +10,10 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_EXTRA) e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(function(e,c) e1:SetCondition(function(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),cm.ff,2,nil,c:GetControler(),c) return Duel.CheckReleaseGroup(c:GetControler(),cm.ff,2,nil,c:GetControler(),c)
end) end)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp,c) e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,cm.ff,2,2,nil,tp,c) local g=Duel.SelectReleaseGroup(tp,cm.ff,2,2,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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