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

byd

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