Commit 2299854f authored by Tachibana's avatar Tachibana

watele

parent 10b6a28b
Pipeline #6725 passed with stages
in 44 minutes and 42 seconds
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
local m=66915073 local m=66915073
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--xyz summon aux.AddCodeList(c,66915070)
--xyz summon
aux.AddXyzProcedure(c,cm.mfilter,4,2,cm.ovfilter,aux.Stringid(m,0),2,cm.xyzop) aux.AddXyzProcedure(c,cm.mfilter,4,2,cm.ovfilter,aux.Stringid(m,0),2,cm.xyzop)
c:EnableReviveLimit() c:EnableReviveLimit()
--code --code
......
...@@ -7,6 +7,7 @@ local m=66915074 ...@@ -7,6 +7,7 @@ local m=66915074
local cm=_G["c"..m] local cm=_G["c"..m]
Duel.LoadScript("c16199990.lua") Duel.LoadScript("c16199990.lua")
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,66915070)
--S summon --S summon
cm.AddSynchroMixProcedure(c,nil,nil,nil,nil,1,99,nil) cm.AddSynchroMixProcedure(c,nil,nil,nil,nil,1,99,nil)
c:EnableReviveLimit() c:EnableReviveLimit()
......
...@@ -2,16 +2,17 @@ ...@@ -2,16 +2,17 @@
local m=66915075 local m=66915075
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,66915070)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,cm.fsilter,2,true) aux.AddFusionProcFunRep(c,cm.fsilter,2,true)
--material limit --splimit
local e0=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetCode(EFFECT_MATERIAL_LIMIT) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e0:SetValue(cm.matlimit) e1:SetValue(cm.splimit)
c:RegisterEffect(e0) c:RegisterEffect(e1)
--code --code
aux.EnableChangeCode(c,m-5,LOCATION_MZONE+LOCATION_GRAVE) aux.EnableChangeCode(c,m-5,LOCATION_MZONE+LOCATION_GRAVE)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -38,13 +39,9 @@ function cm.initial_effect(c) ...@@ -38,13 +39,9 @@ function cm.initial_effect(c)
e2:SetOperation(cm.desop) e2:SetOperation(cm.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.matlimit(e,c,fc,st) function cm.splimit(e,se,sp,st)
if st~=SUMMON_TYPE_FUSION then return true end if not StarLight_from_K then return true end
if c:IsType(TYPE_TRAP+TYPE_SPELL) then return not StarLight_from_K.Brightstarlight_Effect[se]
return c:IsControler(fc:GetControler()) and c:IsLocation(LOCATION_ONFIELD)
else
return true
end
end end
function cm.ffilter(c) function cm.ffilter(c)
return c:IsFusionType(TYPE_FUSION) and c:IsRace(RACE_FAIRY) return c:IsFusionType(TYPE_FUSION) and c:IsRace(RACE_FAIRY)
...@@ -53,7 +50,7 @@ function cm.ffilter2(c) ...@@ -53,7 +50,7 @@ function cm.ffilter2(c)
return c:IsOriginalCodeRule(66915070) and c:IsFusionType(TYPE_FUSION) return c:IsOriginalCodeRule(66915070) and c:IsFusionType(TYPE_FUSION)
end end
function cm.ffilter3(c) function cm.ffilter3(c)
return c:IsFusionType(TYPE_TRAP+TYPE_SPELL) return c:IsFusionType(TYPE_NORMAL)
end end
function cm.fsilter(c,fc,sub,mg,sg) function cm.fsilter(c,fc,sub,mg,sg)
if not sg then if not sg then
......
...@@ -3,6 +3,7 @@ local m=66915077 ...@@ -3,6 +3,7 @@ local m=66915077
local cm=_G["c"..m] local cm=_G["c"..m]
Duel.LoadScript("c16199990.lua") Duel.LoadScript("c16199990.lua")
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,66915070)
c:EnableReviveLimit() c:EnableReviveLimit()
--splimit --splimit
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -55,7 +56,7 @@ function cm.initial_effect(c) ...@@ -55,7 +56,7 @@ function cm.initial_effect(c)
end end
function cm.splimit(e,se,sp,st) function cm.splimit(e,se,sp,st)
if not StarLight_from_K then return true end if not StarLight_from_K then return true end
return StarLight_from_K.Brightstarlight_Effect[se] return not StarLight_from_K.Brightstarlight_Effect[se]
end end
function cm.condition(e,tp) function cm.condition(e,tp)
return Duel.IsExistingMatchingCard(nil,tp,LOCATION_SZONE,0,4,nil) return Duel.IsExistingMatchingCard(nil,tp,LOCATION_SZONE,0,4,nil)
......
...@@ -10,9 +10,6 @@ function c66915079.initial_effect(c) ...@@ -10,9 +10,6 @@ function c66915079.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOEXTRA) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOEXTRA)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 and not Duel.CheckPhaseActivity()
end)
e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCountFromEx(tp,tp,nil,c) local ft=Duel.GetLocationCountFromEx(tp,tp,nil,c)
if chk==0 then return Duel.IsExistingMatchingCard(c66915079.sp,tp,LOCATION_EXTRA,0,1,nil,e,tp,ft)end if chk==0 then return Duel.IsExistingMatchingCard(c66915079.sp,tp,LOCATION_EXTRA,0,1,nil,e,tp,ft)end
......
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