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

byd

parent b250afbd
No preview for this file type
--奥契丝人偶·罗伊德
function c12400072.initial_effect(c)
aux.AddCodeList(c,12400070)
aux.AddCodeList(c,12400070,12400076)
c:EnableReviveLimit()
aux.AddFusionProcFunRep2(c,c12400072.q,3,6,true)
local e1=Effect.CreateEffect(c)
......
--提线人偶·舞诺
function c12400074.initial_effect(c)
aux.AddCodeList(c,12400076)
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,c12400074.q,2,true)
local e1=Effect.CreateEffect(c)
......@@ -21,7 +22,7 @@ function c12400074.initial_effect(c)
e3:SetCode(EFFECT_SPSUMMON_PROC)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1,12400078)
e3:SetCountLimit(1,12400078*2)
e3:SetCondition(c12400074.con3)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
......
--提线人偶·朵叶
function c12400075.initial_effect(c)
aux.IsCodeListed(12400075)
aux.AddCodeList(c,12400075)
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,c12400075.mfilter,2,true)
local e0=Effect.CreateEffect(c)
......
......@@ -22,9 +22,9 @@ function cm.initial_effect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetRange(LOCATION_GRAVE+LOCATION_REMOVED)
e3:SetRange(LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_HAND)
e3:SetCountLimit(1,96026002)
e3:SetCondition(cm.spcon2)
e3:SetTarget(cm.sptg2)
......@@ -70,14 +70,15 @@ function cm.spcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.egfilter,1,nil,tp) and not eg:IsContains(e:GetHandler())
end
function cm.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,flase) and Duel.GetLocationCount(tp,4)>0 end
Duel.SetChainLimit(aux.FALSE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)~=0 then
c:CompleteProcedure()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
--to hand
......
......@@ -6,7 +6,7 @@ function cm.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DECKDES)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m)
......@@ -18,7 +18,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,2))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DECKDES)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCountLimit(1,m)
......
......@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_TRAP_ACT_IN_HAND)
e0:SetCondition(cm.handcon)
e0:SetCondition(cm.handop)
c:RegisterEffect(e0)
--special summon
local e1=Effect.CreateEffect(c)
......@@ -35,12 +36,21 @@ function cm.initial_effect(c)
end
--act in hand
function cm.cfilter(c)
return(c:IsCode(96026001) or c:IsCode(96026004)) and not c:IsPublic()
return c:IsCode(96026001,96026004)and not c:IsPublic()
end
function cm.handcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
function cm.handcon(e)
return Duel.IsExistingMatchingCard(cm.cfilter,e:GetHandlerPlayer(),LOCATION_HAND,0,1,nil)
end
function cm.handop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(3,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(e:GetHandlerPlayer(),cm.cfilter,e:GetHandlerPlayer(),LOCATION_HAND,0,1,1,nil)
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(e:GetHandlerPlayer())
end
function cm.handop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_HAND,0,1,nil)
end
--special summon
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......@@ -54,7 +64,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function cm.spfilter(c,e,tp)
return (c:IsCode(96026001) or aux.IsCodeListed(c,96026001) and c:IsType(TYPE_MONSTER) and c:IsLevelBelow(4)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
return (c:IsCode(96026001) or aux.IsCodeListed(c,96026001) and c:IsType(TYPE_MONSTER)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -62,7 +62,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCountFromEx(tp)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,e:GetLabel()):GetFirst()
if tc and Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)>0 then
......@@ -83,12 +83,11 @@ function cm.mfilter(c)
end
--spsummon
function cm.supfilter(c,e,tp)
return (c:IsCode(96026001) or c:IsCode(96026004)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return (c:IsCode(96026001) or c:IsCode(96026004)) and c:IsCanBeSpecialSummoned(e,0,tp,true,true) and not c:IsLevel(8) and c:IsLevelAbove(1)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
and Duel.IsExistingMatchingCard(cm.supfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
......@@ -96,7 +95,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,cm.supfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp):GetFirst()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,true,true,POS_FACEUP) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_LEVEL)
......@@ -105,4 +104,5 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1)
end
Duel.SpecialSummonComplete()
tc:CompleteProcedure()
end
\ No newline at end of file
......@@ -39,7 +39,7 @@ cm.card_code_list={96026032}
cm.assault_name=96026004
--Cannot special summon
function cm.splimit(e,se,sp,st)
return se:GetHandler():IsCode(96026032) or not e:GetHandler():IsLocation(LOCATION_EXTRA)
return se:GetHandler():IsCode(96026032)
end
--special summon
function cm.spfilter(c,e,tp)
......
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