Commit 46b17b43 authored by Momobako's avatar Momobako

Push by Appveyor

parent 3379c690
No preview for this file type
...@@ -5,19 +5,18 @@ function c1000602.initial_effect(c) ...@@ -5,19 +5,18 @@ function c1000602.initial_effect(c)
e1:SetDescription(aux.Stringid(1000602,0)) e1:SetDescription(aux.Stringid(1000602,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1,1000621) e1:SetCountLimit(1,10006021)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCost(c1000602.spcost) e1:SetCost(c1000602.spcost)
e1:SetTarget(c1000602.sptg) e1:SetTarget(c1000602.sptg)
e1:SetOperation(c1000602.spop) e1:SetOperation(c1000602.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.AddCustomActivityCounter(1000602,ACTIVITY_SPSUMMON,c1000602.counterfilter)
-- --
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOGRAVE) e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,1000602) e2:SetCountLimit(1,10006022)
e2:SetCondition(c1000602.con) e2:SetCondition(c1000602.con)
e2:SetCost(c1000602.cost) e2:SetCost(c1000602.cost)
e2:SetTarget(c1000602.tg) e2:SetTarget(c1000602.tg)
...@@ -28,10 +27,6 @@ function c1000602.initial_effect(c) ...@@ -28,10 +27,6 @@ function c1000602.initial_effect(c)
NitoriGlobal["Effects"]={} NitoriGlobal["Effects"]={}
end end
NitoriGlobal["Effects"]["c1000602"]=e2 NitoriGlobal["Effects"]["c1000602"]=e2
Duel.AddCustomActivityCounter(1000602,ACTIVITY_SPSUMMON,c1000602.counterfilter)
end
function c1000602.counterfilter(c)
return c:IsSetCard(0xc204) and not c:IsType(TYPE_PENDULUM)
end end
function c1000602.costfilter(c) function c1000602.costfilter(c)
return c:IsSetCard(0xc204) and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_PENDULUM) and c:IsDiscardable() return c:IsSetCard(0xc204) and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_PENDULUM) and c:IsDiscardable()
...@@ -40,17 +35,6 @@ function c1000602.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -40,17 +35,6 @@ function c1000602.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1000602.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) if chk==0 then return Duel.IsExistingMatchingCard(c1000602.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler())
and Duel.GetCustomActivityCount(1000602,tp,ACTIVITY_SPSUMMON)==0 end and Duel.GetCustomActivityCount(1000602,tp,ACTIVITY_SPSUMMON)==0 end
Duel.DiscardHand(tp,c1000602.costfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,c1000602.costfilter,1,1,REASON_COST+REASON_DISCARD)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0)
e1:SetTarget(c1000602.splimit)
Duel.RegisterEffect(e1,tp)
end
function c1000602.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0xc204)
end end
function c1000602.filter(c,e,tp) function c1000602.filter(c,e,tp)
return c:IsSetCard(0xc204) and not (c:IsType(TYPE_TUNER) and c:IsType(TYPE_PENDULUM)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xc204) and not (c:IsType(TYPE_TUNER) and c:IsType(TYPE_PENDULUM)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -79,14 +63,6 @@ function c1000602.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,14 +63,6 @@ function c1000602.con(e,tp,eg,ep,ev,re,r,rp)
end end
function c1000602.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c1000602.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(1000602,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(1000602,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0)
e1:SetTarget(c1000602.splimit)
Duel.RegisterEffect(e1,tp)
end end
function c1000602.tgfilter(c) function c1000602.tgfilter(c)
return c:IsSetCard(0xc204) and not (c:IsType(TYPE_TUNER) and c:IsType(TYPE_PENDULUM)) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0xc204) and not (c:IsType(TYPE_TUNER) and c:IsType(TYPE_PENDULUM)) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
......
...@@ -8,7 +8,6 @@ function c1000603.initial_effect(c) ...@@ -8,7 +8,6 @@ function c1000603.initial_effect(c)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,1000603) e1:SetCountLimit(1,1000603)
e1:SetCondition(c1000603.con) e1:SetCondition(c1000603.con)
e1:SetCost(c1000603.cost)
e1:SetTarget(c1000603.setg) e1:SetTarget(c1000603.setg)
e1:SetOperation(c1000603.seop) e1:SetOperation(c1000603.seop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -59,6 +58,11 @@ end ...@@ -59,6 +58,11 @@ end
function c1000603.filter9(c,e,tp) function c1000603.filter9(c,e,tp)
return c:IsSetCard(0xc204) and c:IsControler(tp) and not c:IsType(TYPE_PENDULUM) return c:IsSetCard(0xc204) and c:IsControler(tp) and not c:IsType(TYPE_PENDULUM)
end end
function c1000603.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1000603.costfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,c1000603.costfilter,1,1,REASON_COST+REASON_DISCARD)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c1000603.con(e,tp,eg,ep,ev,re,r,rp) function c1000603.con(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c1000603.filter9,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,e,tp) local g=Duel.GetMatchingGroup(c1000603.filter9,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,e,tp)
local ct=g:GetClassCount(Card.GetCode) local ct=g:GetClassCount(Card.GetCode)
...@@ -67,11 +71,6 @@ end ...@@ -67,11 +71,6 @@ end
function c1000603.costfilter(c) function c1000603.costfilter(c)
return c:IsDiscardable() and c:IsSetCard(0xc204) and not c:IsType(TYPE_PENDULUM) return c:IsDiscardable() and c:IsSetCard(0xc204) and not c:IsType(TYPE_PENDULUM)
end end
function c1000603.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1000603.costfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,c1000603.costfilter,1,1,REASON_COST+REASON_DISCARD)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c1000603.sefilter(c) function c1000603.sefilter(c)
return c:IsSetCard(0xc204) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_PENDULUM) return c:IsSetCard(0xc204) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_PENDULUM)
end end
......
...@@ -30,7 +30,7 @@ function c1000609.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c1000609.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c1000609.sefilter(c) function c1000609.sefilter(c)
return c:IsSetCard(0xc204) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsType(TYPE_PENDULUM) return c:IsSetCard(0xc204) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c1000609.setg(e,tp,eg,ep,ev,re,r,rp,chk) function c1000609.setg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1000609.sefilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c1000609.sefilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -39,7 +39,7 @@ function c1000615.initial_effect(c) ...@@ -39,7 +39,7 @@ function c1000615.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c1000615.filter9(c,e,tp) function c1000615.filter9(c,e,tp)
return c:IsSetCard(0xc204) and c:IsControler(tp) and not c:IsType(TYPE_PENDULUM) return c:IsSetCard(0xc204) and c:IsControler(tp)
end end
function c1000615.con2(e,tp,eg,ep,ev,re,r,rp) function c1000615.con2(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c1000615.filter9,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,e,tp) local g=Duel.GetMatchingGroup(c1000615.filter9,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,e,tp)
......
--圆环圣母 鹿目圆香 --超越的圆环 Madoka
function c1000617.initial_effect(c) function c1000617.initial_effect(c)
c:SetUniqueOnField(1,0,1000617) --link summon
--synchro summon
c:EnableReviveLimit() c:EnableReviveLimit()
local e1=Effect.CreateEffect(c) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xc204),2)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(c1000617.syncon)
e1:SetOperation(c1000617.synop)
e1:SetValue(SUMMON_TYPE_SYNCHRO)
c:RegisterEffect(e1)
--act limit
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(1000617,1))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c1000617.limcon)
e2:SetTarget(c1000617.limtg)
e2:SetOperation(c1000617.limop)
c:RegisterEffect(e2)
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_DISABLE_SPSUMMON)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
c:RegisterEffect(e2)
--immune
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetValue(c1000617.efilter)
c:RegisterEffect(e3)
--cannot release
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UNRELEASABLE_SUM)
e1:SetCondition(c1000617.con)
e1:SetValue(1)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UNRELEASABLE_NONSUM)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL)
e3:SetValue(1)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
c:RegisterEffect(e4)
local e5=e3:Clone()
e5:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL)
c:RegisterEffect(e5)
--control --control
local e99=Effect.CreateEffect(c) local e99=Effect.CreateEffect(c)
e99:SetType(EFFECT_TYPE_SINGLE) e99:SetType(EFFECT_TYPE_SINGLE)
...@@ -66,224 +10,76 @@ function c1000617.initial_effect(c) ...@@ -66,224 +10,76 @@ function c1000617.initial_effect(c)
e99:SetRange(LOCATION_MZONE) e99:SetRange(LOCATION_MZONE)
e99:SetCode(EFFECT_CANNOT_CHANGE_CONTROL) e99:SetCode(EFFECT_CANNOT_CHANGE_CONTROL)
c:RegisterEffect(e99) c:RegisterEffect(e99)
--act limit --spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(1000617,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c1000617.con1)
e2:SetTarget(c1000617.sptg)
e2:SetOperation(c1000617.spop)
c:RegisterEffect(e2)
--immune
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,1) e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetValue(c1000617.aclimit) e1:SetCondition(c1000617.con2)
e1:SetCondition(c1000617.con1) e1:SetValue(c1000617.efilter1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_TO_HAND)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(0,LOCATION_DECK+LOCATION_GRAVE)
e3:SetCondition(c1000617.con2)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_CANNOT_DRAW)
e4:SetCondition(c1000617.con2)
e4:SetTargetRange(0,1)
c:RegisterEffect(e4)
--immune --immune
local e3=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e5:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e5:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetRange(LOCATION_MZONE) e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetCode(EFFECT_IMMUNE_EFFECT) e5:SetRange(LOCATION_MZONE)
e3:SetCondition(c1000617.con3) e5:SetCondition(c1000617.con3)
e3:SetValue(c1000617.efilter2) e5:SetValue(c1000617.efilter2)
c:RegisterEffect(e3) c:RegisterEffect(e5)
end
function c1000617.matfilter1(c,syncard)
return c:IsSetCard(0xc204) and c:IsType(TYPE_TUNER) and (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsCanBeSynchroMaterial(syncard) and not c:IsType(TYPE_PENDULUM)
end
function c1000617.matfilter2(c,syncard)
return c:IsFaceup() and c:IsSetCard(0xc204) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeSynchroMaterial(syncard) and not c:IsType(TYPE_PENDULUM)
end
function c1000617.synfilter1(c,syncard,lv,g1,g2,g3)
local tlv=c:GetSynchroLevel(syncard)
if lv-tlv<=0 then return false end
local f1=c.tuner_filter
if c:IsHasEffect(EFFECT_HAND_SYNCHRO) then
return g3:IsExists(c1000617.synfilter2,1,c,syncard,lv-tlv,g2,f1,c)
else
return g1:IsExists(c1000617.synfilter2,1,c,syncard,lv-tlv,g2,f1,c)
end
end
function c1000617.synfilter2(c,syncard,lv,g2,f1,tuner1)
local tlv=c:GetSynchroLevel(syncard)
if lv-tlv<=0 then return false end
local f2=c.tuner_filter
if f1 and not f1(c) then return false end
if f2 and not f2(tuner1) then return false end
return g2:IsExists(c1000617.synfilter3,1,nil,syncard,lv-tlv,f1,f2)
end
function c1000617.synfilter3(c,syncard,lv,f1,f2)
local mlv=c:GetSynchroLevel(syncard)
local lv1=bit.band(mlv,0xffff)
local lv2=bit.rshift(mlv,16)
return (lv1==lv or lv2==lv) and (not f1 or f1(c)) and (not f2 or f2(c))
end
function c1000617.syncon(e,c,tuner,mg)
if c==nil then return true end
local tp=c:GetControler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<-2 then return false end
local g1=nil
local g2=nil
local g3=nil
if mg then
g1=mg:Filter(c1000617.matfilter1,nil,c)
g2=mg:Filter(c1000617.matfilter2,nil,c)
g3=mg:Filter(c1000617.matfilter1,nil,c)
else
g1=Duel.GetMatchingGroup(c1000617.matfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,nil,c)
g2=Duel.GetMatchingGroup(c1000617.matfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,c)
g3=Duel.GetMatchingGroup(c1000617.matfilter1,tp,LOCATION_MZONE+LOCATION_HAND,LOCATION_MZONE,nil,c)
end
local pe=Duel.IsPlayerAffectedByEffect(tp,EFFECT_MUST_BE_SMATERIAL)
local lv=c:GetLevel()
if tuner then
local tlv=tuner:GetSynchroLevel(c)
if lv-tlv<=0 then return false end
local f1=tuner.tuner_filter
if not pe then
return g1:IsExists(c1000617.synfilter2,1,tuner,c,lv-tlv,g2,f1,tuner)
else
return c1000617.synfilter2(pe:GetOwner(),c,lv-tlv,g2,f1,tuner)
end
end
if not pe then
return g1:IsExists(c1000617.synfilter1,1,nil,c,lv,g1,g2,g3)
else
return c1000617.synfilter1(pe:GetOwner(),c,lv,g1,g2)
end
end
function c1000617.synop(e,tp,eg,ep,ev,re,r,rp,c,tuner,mg)
local g=Group.CreateGroup()
local g1=nil
local g2=nil
local g3=nil
if mg then
g1=mg:Filter(c1000617.matfilter1,nil,c)
g2=mg:Filter(c1000617.matfilter2,nil,c)
g3=mg:Filter(c1000617.matfilter1,nil,c)
else
g1=Duel.GetMatchingGroup(c1000617.matfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,nil,c)
g2=Duel.GetMatchingGroup(c1000617.matfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,c)
g3=Duel.GetMatchingGroup(c1000617.matfilter1,tp,LOCATION_MZONE+LOCATION_HAND,LOCATION_MZONE,nil,c)
end
local pe=Duel.IsPlayerAffectedByEffect(tp,EFFECT_MUST_BE_SMATERIAL)
local lv=c:GetLevel()
if tuner then
g:AddCard(tuner)
local lv1=tuner:GetSynchroLevel(c)
local f1=tuner.tuner_filter
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL)
local tuner2=nil
if not pe then
local t2=g1:FilterSelect(tp,c1000617.synfilter2,1,1,tuner,c,lv-lv1,g2,f1,tuner)
tuner2=t2:GetFirst()
else
tuner2=pe:GetOwner()
Group.FromCards(tuner2):Select(tp,1,1,nil)
end
g:AddCard(tuner2)
local lv2=tuner2:GetSynchroLevel(c)
local f2=tuner2.tuner_filter
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL)
local m3=g2:FilterSelect(tp,c1000617.synfilter3,1,1,nil,c,lv-lv1-lv2,f1,f2)
g:Merge(m3)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL)
local tuner1=nil
if not pe then
local t1=g1:FilterSelect(tp,c1000617.synfilter1,1,1,nil,c,lv,g1,g2,g3)
tuner1=t1:GetFirst()
else
tuner1=pe:GetOwner()
Group.FromCards(tuner1):Select(tp,1,1,nil)
end
g:AddCard(tuner1)
local lv1=tuner1:GetSynchroLevel(c)
local f1=tuner1.tuner_filter
local t2=nil
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL)
if tuner1:IsHasEffect(EFFECT_HAND_SYNCHRO) then
t2=g3:FilterSelect(tp,c1000617.synfilter2,1,1,tuner1,c,lv-lv1,g2,f1,tuner1)
else
t2=g1:FilterSelect(tp,c1000617.synfilter2,1,1,tuner1,c,lv-lv1,g2,f1,tuner1)
end
local tuner2=t2:GetFirst()
g:AddCard(tuner2)
local lv2=tuner2:GetSynchroLevel(c)
local f2=tuner2.tuner_filter
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL)
local m3=g2:FilterSelect(tp,c1000617.synfilter3,1,1,nil,c,lv-lv1-lv2,f1,f2)
g:Merge(m3)
end
c:SetMaterial(g)
Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
end
function c1000617.limcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
end
function c1000617.limtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetChainLimit(c1000617.chainlm)
end
function c1000617.chainlm(e,rp,tp)
return tp==rp
end
function c1000617.limop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetValue(c1000617.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c1000617.aclimit(e,re,tp)
return re:GetHandler():IsOnField()
end
function c1000617.efilter(e,te)
return te:IsActiveType(TYPE_MONSTER) and te:GetOwner()~=e:GetOwner()
end end
function c1000617.filter9(c,e,tp) function c1000617.filter9(c,e,tp)
return c:IsSetCard(0xc204) and c:IsControler(tp) and not c:IsType(TYPE_PENDULUM) return c:IsSetCard(0xc204) and c:IsControler(tp)
end
function c1000617.con(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c1000617.filter9,LOCATION_GRAVE,0,nil,e,tp)
local ct=g:GetClassCount(Card.GetCode)
return ct>=1
end end
function c1000617.con1(e,tp,eg,ep,ev,re,r,rp) function c1000617.con1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c1000617.filter9,LOCATION_GRAVE,0,nil,e,tp) local g=Duel.GetMatchingGroup(c1000617.filter9,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,e,tp)
local ct=g:GetClassCount(Card.GetCode) local ct=g:GetClassCount(Card.GetCode)
return ct>=3 return ct>=3
end end
function c1000617.aclimit(e,re,tp) function c1000617.spfilter(c,e,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL+TYPE_NORMAL) return c:IsSetCard(0xc204) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c1000617.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc==0 then return false end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c1000617.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c1000617.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,LOCATION_GRAVE)
end
function c1000617.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local g=Duel.GetFirstTarget()
if g and g:IsRelateToEffect(e) then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end end
function c1000617.con2(e,tp,eg,ep,ev,re,r,rp) function c1000617.con2(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c1000617.filter9,LOCATION_GRAVE,0,nil,e,tp) local g=Duel.GetMatchingGroup(c1000617.filter9,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,e,tp)
local ct=g:GetClassCount(Card.GetCode) local ct=g:GetClassCount(Card.GetCode)
return ct>=6 return ct>=6
end end
function c1000617.efilter1(e,re)
return e:GetHandlerPlayer()~=re:GetOwnerPlayer() and re:IsActiveType(TYPE_MONSTER)
end
function c1000617.con3(e,tp,eg,ep,ev,re,r,rp) function c1000617.con3(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c1000617.filter9,LOCATION_GRAVE,0,nil,e,tp) local g=Duel.GetMatchingGroup(c1000617.filter9,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,e,tp)
local ct=g:GetClassCount(Card.GetCode) local ct=g:GetClassCount(Card.GetCode)
return ct>=9 return ct>=9
end end
function c1000617.efilter2(e,te) function c1000617.efilter2(e,re)
return te:IsActiveType(TYPE_MONSTER) and te:GetOwner()~=e:GetOwner() return e:GetHandlerPlayer()~=re:GetOwnerPlayer() and re:IsActiveType(TYPE_SPELL+TYPE_TRAP)
end end
\ No newline at end of file
...@@ -3,9 +3,9 @@ function c1000621.initial_effect(c) ...@@ -3,9 +3,9 @@ function c1000621.initial_effect(c)
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(1000621,0)) e1:SetDescription(aux.Stringid(1000621,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_HANDES) e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1,1000621) e1:SetCountLimit(1,10006211)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c1000621.target) e1:SetTarget(c1000621.target)
e1:SetOperation(c1000621.operation) e1:SetOperation(c1000621.operation)
...@@ -18,27 +18,26 @@ function c1000621.initial_effect(c) ...@@ -18,27 +18,26 @@ function c1000621.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_GRAVE) e1:SetRange(LOCATION_GRAVE)
e1:SetCountLimit(1,10006210) e1:SetCountLimit(1,10006212)
e1:SetCondition(c1000621.negcon) e1:SetCondition(c1000621.negcon)
e1:SetTarget(c1000621.negtg) e1:SetTarget(c1000621.negtg)
e1:SetOperation(c1000621.negop) e1:SetOperation(c1000621.negop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c1000621.filter(c) function c1000621.filter(c)
return c:IsSetCard(0xc204) and c:IsType(TYPE_MONSTER) and not c:IsType(TYPE_PENDULUM) and c:IsAbleToHand() return c:IsSetCard(0xc204) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c1000621.target(e,tp,eg,ep,ev,re,r,rp,chk) function c1000621.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1000621.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c1000621.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,1,tp,1)
end end
function c1000621.operation(e,tp,eg,ep,ev,re,r,rp) function c1000621.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c1000621.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c1000621.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()==0 then return end if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp) end
end end
function c1000621.tfilter(c,tp) function c1000621.tfilter(c,tp)
return c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) and c:IsFaceup() and c:IsSetCard(0xc204) return c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) and c:IsFaceup() and c:IsSetCard(0xc204)
......
...@@ -31,7 +31,7 @@ function c22241001.IsSolid(c) ...@@ -31,7 +31,7 @@ function c22241001.IsSolid(c)
return m and m.named_with_Solid return m and m.named_with_Solid
end end
function c22241001.desfilter(c) function c22241001.desfilter(c)
return bit.band(c:GetType(),0x81)==0x81 return bit.band(c:GetType(),0x81)==0x81 and c22241001.IsSolid(c)
end end
function c22241001.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22241001.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and c22241001.desfilter(chkc) end if chkc then return chkc:IsControler(tp) and c22241001.desfilter(chkc) end
......
--DON'T CUT
local m=37564337
local cm=_G["c"..m]
xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end)
function cm.initial_effect(c)
Senya.AddXyzProcedureCustom(c,function(c) return c:IsType(TYPE_LINK) and c:GetLink()==3 end,nil,2,63)
Senya.AddSummonMusic(c,m*16,SUMMON_TYPE_XYZ)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_PHASE+PHASE_STANDBY)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1)
e4:SetCondition(function(e,tp) return Duel.GetTurnPlayer()==tp end)
e4:SetTarget(cm.rmtg)
e4:SetOperation(cm.rmop)
c:RegisterEffect(e4)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SET_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetTarget(function(e,c) return c:IsType(TYPE_LINK) end)
e1:SetValue(function(e,c) return math.ceil(c:GetBaseAttack()/2) end)
c:RegisterEffect(e1)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(710253)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetCondition(function(e) return e:GetHandler():GetOverlayCount()>0 end)
e1:SetTarget(function(e,c) return c:IsType(TYPE_LINK) end)
e1:SetValue(0)
c:RegisterEffect(e1)
end
function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
c:RemoveOverlayCard(tp,1,1,REASON_EFFECT)
end
\ No newline at end of file
--恋色的舞姬·纱由里
local m=37564338
local cm=_G["c"..m]
xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end)
function cm.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.TRUE,4)
c:EnableReviveLimit()
--atk
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(cm.atkval)
c:RegisterEffect(e1)
--negate
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(cm.discon)
e2:SetCost(cm.discost)
e2:SetTarget(cm.distg)
e2:SetOperation(cm.disop)
c:RegisterEffect(e2)
end
function cm.atkval(e,c)
return c:GetLinkedGroupCount()*2000
end
function cm.tfilter(c,tp)
return c:IsOnField() and c:IsControler(tp)
end
function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and Duel.IsChainNegatable(ev)
end
function cm.cfilter(c,g)
return g:IsContains(c) and not c:IsStatus(STATUS_BATTLE_DESTROYED) and c:IsAbleToRemoveAsCost()
end
function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil,lg) end
Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_MZONE,0,1,1,nil,lg)
local tc=g:GetFirst()
if Duel.Remove(tc,POS_FACEUP,REASON_COST+REASON_TEMPORARY)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetLabelObject(tc)
e1:SetCountLimit(1)
e1:SetOperation(cm.retop)
Duel.RegisterEffect(e1,tp)
end
end
function cm.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.ReturnToField(e:GetLabelObject())
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
end
\ No newline at end of file
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
#兔锅 222 #兔锅 222
#named_with_Shirasawa_Tama 白泽球 #named_with_Shirasawa_Tama 白泽球
#named_with_Darkest_D Darkest #named_with_Darkest_D Darkest
#named_with_Solid Solid
#Nemoma 337 0x440-0x44f #Nemoma 337 0x440-0x44f
!setname 0x442 动物朋友 !setname 0x442 动物朋友
......
...@@ -22,17 +22,16 @@ ...@@ -22,17 +22,16 @@
#52 #52
05200010 0 --圣精灵 格奥基乌斯 05200010 0 --圣精灵 格奥基乌斯
#101 #101
#食腐鼠
10173052 1 --喜剧小丑 10173052 1 --喜剧小丑
10173054 0 --食腐骨犬 10173054 0 --食腐骨犬
10173058 0 --恶魔科学塑型体 10173058 0 --恶魔科学塑型体
10173059 0 --连接融合者 10173059 0 --连接融合者
#132 #132
13254059 2 --元始飞球 #元始飞球
13254065 1 --禁忌飞球·饕餮 #禁忌飞球·饕餮
13254067 1 --禁忌飞球·怠惰 #禁忌飞球·怠惰
13254073 1 --禁忌飞球·妒忌 #禁忌飞球·妒忌
13254085 1 --腐化飞球·侵蚀 #腐化飞球·侵蚀
13255402 2 --清者自清 13255402 2 --清者自清
#135 #135
13580008 0 --怨念之冥途世界 13580008 0 --怨念之冥途世界
...@@ -46,6 +45,7 @@ ...@@ -46,6 +45,7 @@
16081010 0 --重金属狂欢 关岛 16081010 0 --重金属狂欢 关岛
#170 #170
17060884 0 --华恋型多莫维依 17060884 0 --华恋型多莫维依
17091001 1 --RX-0 独角兽高达
#214 #214
#222 #222
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
37564509 2 --Harunohi 37564509 2 --Harunohi
37564510 1 --Koinomi 37564510 1 --Koinomi
37564701 0 --邪眼之魔女-桑德莉佣 37564701 0 --邪眼之魔女-桑德莉佣
37564819 2 --3L·苍空之舞-墨染之樱 #3L·苍空之舞-墨染之樱
37564836 1 --邪符『不祥之兆』 37564836 1 --邪符『不祥之兆』
37564848 2 --3L·不可思议的梦幻 37564848 2 --3L·不可思议的梦幻
37564906 1 --Sayuri·Amazing one more 37564906 1 --Sayuri·Amazing one more
...@@ -84,13 +84,17 @@ ...@@ -84,13 +84,17 @@
50000074 0 --绝对条件 奇犽 50000074 0 --绝对条件 奇犽
50000066 0 --船长 奇犽 50000066 0 --船长 奇犽
50000507 2 --星宿的神迹 50000507 2 --星宿的神迹
50000510 2 --星宿的精灵 50000510 1 --星宿的精灵
50000511 1 --灵装之星宿骑士 50000511 1 --灵装之星宿骑士
#573 #573
#601 #601
60151704 0 --天空的水晶部队 狡猾的女仆贼 60151704 0 --天空的水晶部队 狡猾的女仆贼
#666 #666
66619903 0 --AIW·指引者柴郡喵
66619906 1 --AIW·先知毛毛虫
66619913 1 --下午茶时间☆ 66619913 1 --下午茶时间☆
66619914 2 --未眠的心之火
66619920 0 --AIW·绽放之蝶
66677705 2 --777-祈愿 66677705 2 --777-祈愿
66677708 2 --777-绽放之时的色彩 66677708 2 --777-绽放之时的色彩
66677711 1 --777-风映之春 66677711 1 --777-风映之春
......
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