Commit 4fdbcbdd authored by nanahira's avatar nanahira

filelist

parent 7d3f95e6
--双色的恋意
local m=12008006
local cm=_G["c"..m]
function cm.initial_effect(c)
--recover
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_RECOVER+CATEGORY_DESTROY)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c12008006.cost)
e1:SetTarget(c12008006.tg)
e1:SetOperation(c12008006.op)
c:RegisterEffect(e1)
--recover
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12008006,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED)
e2:SetCondition(c12008006.spcon)
e2:SetTarget(c12008006.sptg)
e2:SetOperation(c12008006.spop)
c:RegisterEffect(e2)
-- if not c12008006.global_check then
-- c12008006.global_check=true
-- local ge1=Effect.CreateEffect(c)
-- ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
-- ge1:SetCode(EVENT_CHAINING)
-- ge1:SetOperation(c12008006.checkop)
-- Duel.RegisterEffect(ge1,0)
-- end
end
-- function c12008006.checkop(e,tp,eg,ep,ev,re,r,rp)
-- if not eg then return end
-- if re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and re:GetHandler():IsCode(12008006) then
-- Duel.RegisterFlagEffect(tp,12008006,RESET_PHASE+PHASE_END,0,1)
-- end
--end
function c12008006.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.RegisterFlagEffect(tp,12008006,RESET_PHASE+PHASE_END,0,1)
end
function c12008006.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(800)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,800)
end
function c12008006.spfilter(c)
return c:IsCode(12008006)
end
function c12008006.op(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
if true then Duel.Recover(p,d,REASON_EFFECT) end
local sg=Duel.GetMatchingGroup(c12008006.spfilter,tp,LOCATION_ONFIELD,0,e:GetHandler())
if sg:GetCount()>0 then
Duel.Destroy(sg,REASON_EFFECT)
end
end
function c12008006.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function c12008006.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local ct=Duel.GetFlagEffect(tp,12008006)
if ct<=0 then
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,800) end
if ct>=1 then
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end
if ct>=3 then
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) end
if ct==5 then
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,20000)
end
end
function c12008006.spfilter1(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c12008006.spfilter2(c)
return c:IsCode(12008006) and c:IsAbleToHand()
end
function c12008006.spop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffect(tp,12008006)
if ct<=0 then Duel.Damage(tp,800,REASON_EFFECT) end
if ct>=1 then Duel.Draw(tp,1,REASON_EFFECT) end
if ct>=3 and Duel.IsExistingMatchingCard(c12008006.spfilter1,tp,LOCATION_HAND,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(12008006,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c12008006.spfilter1,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
if ct==5 then
Duel.Recover(tp,20000,REASON_EFFECT)
end
--双色的恋意
local m=12008006
local cm=_G["c"..m]
function cm.initial_effect(c)
--recover
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_RECOVER+CATEGORY_DESTROY)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c12008006.cost)
e1:SetTarget(c12008006.tg)
e1:SetOperation(c12008006.op)
c:RegisterEffect(e1)
--recover
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12008006,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED)
e2:SetCondition(c12008006.spcon)
e2:SetTarget(c12008006.sptg)
e2:SetOperation(c12008006.spop)
c:RegisterEffect(e2)
-- if not c12008006.global_check then
-- c12008006.global_check=true
-- local ge1=Effect.CreateEffect(c)
-- ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
-- ge1:SetCode(EVENT_CHAINING)
-- ge1:SetOperation(c12008006.checkop)
-- Duel.RegisterEffect(ge1,0)
-- end
end
-- function c12008006.checkop(e,tp,eg,ep,ev,re,r,rp)
-- if not eg then return end
-- if re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and re:GetHandler():IsCode(12008006) then
-- Duel.RegisterFlagEffect(tp,12008006,RESET_PHASE+PHASE_END,0,1)
-- end
--end
function c12008006.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.RegisterFlagEffect(tp,12008006,RESET_PHASE+PHASE_END,0,1)
end
function c12008006.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(800)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,800)
end
function c12008006.spfilter(c)
return c:IsCode(12008006)
end
function c12008006.op(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
if true then Duel.Recover(p,d,REASON_EFFECT) end
local sg=Duel.GetMatchingGroup(c12008006.spfilter,tp,LOCATION_ONFIELD,0,e:GetHandler())
if sg:GetCount()>0 then
Duel.Destroy(sg,REASON_EFFECT)
end
end
function c12008006.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function c12008006.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local ct=Duel.GetFlagEffect(tp,12008006)
if ct<=0 then
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,800) end
if ct>=1 then
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end
if ct>=3 then
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) end
if ct==5 then
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,20000)
end
end
function c12008006.spfilter1(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c12008006.spfilter2(c)
return c:IsCode(12008006) and c:IsAbleToHand()
end
function c12008006.spop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffect(tp,12008006)
if ct<=0 then Duel.Damage(tp,800,REASON_EFFECT) end
if ct>=1 then Duel.Draw(tp,1,REASON_EFFECT) end
if ct>=3 and Duel.IsExistingMatchingCard(c12008006.spfilter1,tp,LOCATION_HAND,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(12008006,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c12008006.spfilter1,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
if ct==5 then
Duel.Recover(tp,20000,REASON_EFFECT)
end
end
\ No newline at end of file
--SG继承者,波恋达斯
function c12008009.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x1fb3),2,2)
c:EnableReviveLimit()
--Destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12008009,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(c12008009.linkcon)
e1:SetOperation(c12008009.linkop)
c:RegisterEffect(e1)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12008009,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c12008009.descon)
e1:SetTarget(c12008009.destg)
e1:SetOperation(c12008009.desop)
c:RegisterEffect(e1)
--tohand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12008009,1))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,12008009)
e2:SetCost(c12008009.cost)
e2:SetTarget(c12008009.target)
e2:SetOperation(c12008009.operation)
c:RegisterEffect(e2)
end
function c12008009.sprfilter(c,sc)
return c:IsCanBeLinkMaterial(sc) and c:IsRace(RACE_SEASERPENT) and Duel.IsExistingMatchingCard(c12008009.sprfilter1,tp,LOCATION_MZONE+LOCATION_HAND,0,1,c) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_LINK)>0 and c:IsAbleToRemoveAsCost()
end
function c12008009.sprfilter1(c,sc)
return c:IsCanBeLinkMaterial(sc) and c:IsRace(RACE_MACHINE) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_LINK)>0 and c:IsAbleToRemoveAsCost()
end
function c12008009.linkcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(c12008009.sprfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,nil,c)
return g:GetCount()>0
end
function c12008009.linkop(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c12008009.sprfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,nil,c)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local cc1=g:Select(tp,1,1,nil)
local cc2=Duel.SelectMatchingCard(tp,c12008009.sprfilter1,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,cc1)
cc1:Merge(cc2)
Duel.Remove(cc1,POS_FACEUP,REASON_EFFECT)
end
end
function c12008009.filter(c)
return c:IsSetCard(0x1fb3) and c:IsAbleToHand()
end
function c12008009.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c12008009.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end
function c12008009.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c12008009.filter),tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
end
function c12008009.cfilter(c,g)
return g:IsContains(c)
end
function c12008009.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(tp,c12008009.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c12008009.cfilter,1,1,nil,lg)
Duel.Release(g,REASON_COST)
end
function c12008009.cfilter2(c,g)
return c:IsFaceup() and g:IsContains(c) and c:IsSetCard(0x1fb3)
end
function c12008009.descon(e,tp,eg,ep,ev,re,r,rp)
local lg=e:GetHandler():GetLinkedGroup()
return lg and eg:IsExists(c12008009.cfilter2,1,nil,lg)
end
function c12008009.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,LOCATION_ONFIELD)
end
function c12008009.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
if dg:GetCount()>0 then
Duel.HintSelection(dg)
Duel.Destroy(dg,REASON_EFFECT)
end
end
--SG继承者,波恋达斯
function c12008009.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x1fb3),2,2)
c:EnableReviveLimit()
--Destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12008009,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(c12008009.linkcon)
e1:SetOperation(c12008009.linkop)
c:RegisterEffect(e1)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12008009,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c12008009.descon)
e1:SetTarget(c12008009.destg)
e1:SetOperation(c12008009.desop)
c:RegisterEffect(e1)
--tohand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12008009,1))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,12008009)
e2:SetCost(c12008009.cost)
e2:SetTarget(c12008009.target)
e2:SetOperation(c12008009.operation)
c:RegisterEffect(e2)
end
function c12008009.sprfilter(c,sc)
return c:IsCanBeLinkMaterial(sc) and c:IsRace(RACE_SEASERPENT) and Duel.IsExistingMatchingCard(c12008009.sprfilter1,tp,LOCATION_MZONE+LOCATION_HAND,0,1,c) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_LINK)>0 and c:IsAbleToRemoveAsCost()
end
function c12008009.sprfilter1(c,sc)
return c:IsCanBeLinkMaterial(sc) and c:IsRace(RACE_MACHINE) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_LINK)>0 and c:IsAbleToRemoveAsCost()
end
function c12008009.linkcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(c12008009.sprfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,nil,c)
return g:GetCount()>0
end
function c12008009.linkop(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c12008009.sprfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,nil,c)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local cc1=g:Select(tp,1,1,nil)
local cc2=Duel.SelectMatchingCard(tp,c12008009.sprfilter1,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,cc1)
cc1:Merge(cc2)
Duel.Remove(cc1,POS_FACEUP,REASON_EFFECT)
end
end
function c12008009.filter(c)
return c:IsSetCard(0x1fb3) and c:IsAbleToHand()
end
function c12008009.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c12008009.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end
function c12008009.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c12008009.filter),tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
end
function c12008009.cfilter(c,g)
return g:IsContains(c)
end
function c12008009.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(tp,c12008009.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c12008009.cfilter,1,1,nil,lg)
Duel.Release(g,REASON_COST)
end
function c12008009.cfilter2(c,g)
return c:IsFaceup() and g:IsContains(c) and c:IsSetCard(0x1fb3)
end
function c12008009.descon(e,tp,eg,ep,ev,re,r,rp)
local lg=e:GetHandler():GetLinkedGroup()
return lg and eg:IsExists(c12008009.cfilter2,1,nil,lg)
end
function c12008009.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,LOCATION_ONFIELD)
end
function c12008009.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
if dg:GetCount()>0 then
Duel.HintSelection(dg)
Duel.Destroy(dg,REASON_EFFECT)
end
end
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
2020/2/3 20:59:47
\ No newline at end of file
2020/2/17 19:24:08
\ No newline at end of file
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