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

byd

parent bf583285
No preview for this file type
......@@ -6,7 +6,7 @@ function cm.initial_effect(c)
aux.AddMaterialCodeList(c,1102000)
aux.AddCodeList(c,1102000)
--synchro summon
aux.AddSynchroProcedure(c,c2956282.synfilter,aux.FilterBoolFunction(Card.IsCode,1102000),1,1)
aux.AddSynchroProcedure(c,cm.synfilter,aux.FilterBoolFunction(Card.IsCode,1102000),1,1)
c:EnableReviveLimit()
--code
aux.EnableChangeCode(c,1102000,LOCATION_MZONE+LOCATION_GRAVE)
......
......@@ -8,8 +8,8 @@ function c1141202.initial_effect(c)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_HANDES+CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c1141201.tg1)
e1:SetOperation(c1141201.op1)
e1:SetTarget(c1141202.tg1)
e1:SetOperation(c1141202.op1)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
......@@ -17,17 +17,17 @@ function c1141202.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCondition(c1141201.con2)
e2:SetTarget(c1141201.tg2)
e2:SetOperation(c1141201.op2)
e2:SetCondition(c1141202.con2)
e2:SetTarget(c1141202.tg2)
e2:SetOperation(c1141202.op2)
c:RegisterEffect(e2)
--
end
--
function c1141201.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
function c1141202.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_MZONE,0,1,nil) end
end
function c1141201.op1(e,tp,eg,ep,ev,re,r,rp)
function c1141202.op1(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(Card.IsFacedown,tp,LOCATION_MZONE,0,nil)
if sg:GetCount()>0 then
Duel.ConfirmCards(1-tp,sg)
......@@ -45,20 +45,20 @@ function c1141201.op1(e,tp,eg,ep,ev,re,r,rp)
end
end
--
function c1141201.con2(e,tp,eg,ep,ev,re,r,rp)
function c1141202.con2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return bit.band(r,0x4040)~=0 and c:IsPreviousLocation(LOCATION_HAND)
end
function c1141201.tfilter2(c)
function c1141202.tfilter2(c)
return c:IsAbleToDeck() and c:IsSetCard(0x3e13) and not c:IsType(TYPE_SPELL)
end
function c1141201.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1141201.tfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,5,nil) end
function c1141202.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1141202.tfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,5,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,5,tp,LOCATION_GRAVE+LOCATION_REMOVED)
end
function c1141201.op2(e,tp,eg,ep,ev,re,r,rp)
function c1141202.op2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=Duel.SelectMatchingCard(tp,c1141201.tfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,5,5,nil)
local sg=Duel.SelectMatchingCard(tp,c1141202.tfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,5,5,nil)
if sg:GetCount()>0 then
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
end
......
......@@ -39,7 +39,7 @@ function s.spop1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.spfil,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,nil,e,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or g:GetCount()<=0 then return end
local sg=g:Select(tp,1,1,nil)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)7
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
function s.tfilter(c,tp)
......
--英灵礼装-最后的加演
function c50424435.initial_effect(c)
end
......@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_REMOVE)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,,m+900)
e2:SetCountLimit(1,m+900)
e2:SetTarget(cm.drtg)
e2:SetOperation(cm.drop)
c:RegisterEffect(e2)
......
......@@ -17,16 +17,13 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
Senya.NanahiraTrap(c,e1)
end
function cm.costfilter(c,tp)
return c:IsCode(37564765)
end
function cm.cfilter(c)
return c:IsFaceup() and c:GetOriginalCode()==37564765
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,cm.costfilter,1,nil) or Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) end
if not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectReleaseGroup(REASON_COST,tp,cm.costfilter,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsCode,1,nil,37564765) or Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) end
if Duel.CheckReleaseGroup(tp,Card.IsCode,1,nil,37564765) and not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectReleaseGroup(tp,Card.IsCode,1,1,nil,37564765)
Duel.Release(g,REASON_COST)
end
end
......
--尽灭黑洞龙
local m=96077020
local m=96077021
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,96077020)
aux.AddCodeList(c,96077020)
--xyz summon
aux.AddXyzProcedure(c,nil,7,2)
c:EnableReviveLimit()
......@@ -63,7 +63,7 @@ function cm.upcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetBattleMonster(1-tp)
return tc and tc:IsRelateToBattle() and (Duel.GetAttacker()==c or Duel.GetAttackTarget()==c)
end
end
function cm.uptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and aux.nzatk(chkc) end
if chk==0 then return Duel.IsExistingTarget(aux.nzatk,tp,0,LOCATION_MZONE,1,nil) 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