Commit 19759ec5 authored by TanakaKotoha's avatar TanakaKotoha

none

parent 83640868
No preview for this file type
...@@ -20,7 +20,7 @@ function cm.chainfilter(re,tp,cid) ...@@ -20,7 +20,7 @@ function cm.chainfilter(re,tp,cid)
local rc=re:GetHandler() local rc=re:GetHandler()
return rc.Senya_desc_with_nanahira return rc.Senya_desc_with_nanahira
end end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)==0 end if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
--百鬼妖游祭行 攀晓暗之蜘蛛
function c72406005.initial_effect(c)
--spirit return
aux.EnableSpiritReturn(c,EVENT_SUMMON_SUCCESS,EVENT_FLIP)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--set
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(72406005,0))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCategory(CATEGORY_SEARCH)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,72406006)
e2:SetTarget(c72406005.target1)
e2:SetOperation(c72406005.operation1)
c:RegisterEffect(e2)
--Summon
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(72406005,1))
e3:SetCategory(CATEGORY_SUMMON)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetRange(LOCATION_HAND)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetHintTiming(0,TIMING_END_PHASE)
e3:SetCountLimit(1,72406005)
e3:SetCost(c72406005.sumcost)
e3:SetTarget(c72406005.target2)
e3:SetOperation(c72406005.operation2)
c:RegisterEffect(e3)
Duel.AddCustomActivityCounter(72406005,ACTIVITY_SUMMON,c72406005.counterfilter)
end
--e2
function c72406005.setfilter(c)
return c:IsSetCard(0x4c,0x89) and c:GetType()==TYPE_TRAP and c:IsSSetable()
end
function c72406005.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c72406005.setfilter,tp,LOCATION_DECK,0,1,nil) end
end
function c72406005.operation1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c72406005.setfilter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.SSet(tp,tc)
end
end
--e3
function c72406005.counterfilter(c)
return c:IsType(TYPE_SPIRIT)
end
function c72406005.sumlimit(e,c)
return not c:IsType(TYPE_SPIRIT)
end
function c72406005.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(72406005,tp,ACTIVITY_SUMMON)==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_SUMMON)
e1:SetTargetRange(1,0)
e1:SetTarget(c72406005.sumlimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c72406005.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0)
end
function c72406005.operation2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.Summon(tp,c,true,nil)
end
\ No newline at end of file
--百鬼妖游祭行 晓染顶的忍仙
function c72406009.initial_effect(c)
--spirit return
aux.EnableSpiritReturn(c,EVENT_SUMMON_SUCCESS,EVENT_FLIP)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--set
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(72406009,0))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCategory(CATEGORY_SEARCH)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,72406010)
e2:SetTarget(c72406009.target1)
e2:SetOperation(c72406009.operation1)
c:RegisterEffect(e2)
--Summon
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(72406009,1))
e3:SetCategory(CATEGORY_SUMMON)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetRange(LOCATION_HAND)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetHintTiming(0,TIMING_END_PHASE)
e3:SetCountLimit(1,72406009)
e3:SetCost(c72406009.sumcost)
e3:SetTarget(c72406009.target2)
e3:SetOperation(c72406009.operation2)
c:RegisterEffect(e3)
Duel.AddCustomActivityCounter(72406009,ACTIVITY_SUMMON,c72406009.counterfilter)
end
--e2
function c72406009.setfilter(c)
return c:IsType(TYPE_TRAP) and c:IsSetCard(0x61) and c:IsSSetable()
end
function c72406009.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c72406009.setfilter,tp,LOCATION_DECK,0,1,nil,true) end
end
function c72406009.operation1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c72406009.setfilter,tp,LOCATION_DECK,0,1,1,nil,false)
if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst())
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
g:GetFirst():RegisterEffect(e1)
end
end
--e3
function c72406009.counterfilter(c)
return c:IsType(TYPE_SPIRIT)
end
function c72406009.sumlimit(e,c)
return not c:IsType(TYPE_SPIRIT)
end
function c72406009.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(72406009,tp,ACTIVITY_SUMMON)==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_SUMMON)
e1:SetTargetRange(1,0)
e1:SetTarget(c72406009.sumlimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c72406009.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0)
end
function c72406009.operation2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.Summon(tp,c,true,nil)
end
\ No newline at end of file
...@@ -108,6 +108,6 @@ function c72406043.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -108,6 +108,6 @@ function c72406043.retop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c72406045.retfilter2(c) function c72406043.retfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x721) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x721)
end end
\ 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