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 @@
local m=66915073
local cm=_G["c"..m]
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)
c:EnableReviveLimit()
--code
......
......@@ -7,6 +7,7 @@ local m=66915074
local cm=_G["c"..m]
Duel.LoadScript("c16199990.lua")
function cm.initial_effect(c)
aux.AddCodeList(c,66915070)
--S summon
cm.AddSynchroMixProcedure(c,nil,nil,nil,nil,1,99,nil)
c:EnableReviveLimit()
......
......@@ -2,16 +2,17 @@
local m=66915075
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,66915070)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,cm.fsilter,2,true)
--material limit
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetCode(EFFECT_MATERIAL_LIMIT)
e0:SetValue(cm.matlimit)
c:RegisterEffect(e0)
--splimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(cm.splimit)
c:RegisterEffect(e1)
--code
aux.EnableChangeCode(c,m-5,LOCATION_MZONE+LOCATION_GRAVE)
local e1=Effect.CreateEffect(c)
......@@ -38,13 +39,9 @@ function cm.initial_effect(c)
e2:SetOperation(cm.desop)
c:RegisterEffect(e2)
end
function cm.matlimit(e,c,fc,st)
if st~=SUMMON_TYPE_FUSION then return true end
if c:IsType(TYPE_TRAP+TYPE_SPELL) then
return c:IsControler(fc:GetControler()) and c:IsLocation(LOCATION_ONFIELD)
else
return true
end
function cm.splimit(e,se,sp,st)
if not StarLight_from_K then return true end
return not StarLight_from_K.Brightstarlight_Effect[se]
end
function cm.ffilter(c)
return c:IsFusionType(TYPE_FUSION) and c:IsRace(RACE_FAIRY)
......@@ -53,7 +50,7 @@ function cm.ffilter2(c)
return c:IsOriginalCodeRule(66915070) and c:IsFusionType(TYPE_FUSION)
end
function cm.ffilter3(c)
return c:IsFusionType(TYPE_TRAP+TYPE_SPELL)
return c:IsFusionType(TYPE_NORMAL)
end
function cm.fsilter(c,fc,sub,mg,sg)
if not sg then
......
......@@ -3,6 +3,7 @@ local m=66915077
local cm=_G["c"..m]
Duel.LoadScript("c16199990.lua")
function cm.initial_effect(c)
aux.AddCodeList(c,66915070)
c:EnableReviveLimit()
--splimit
local e1=Effect.CreateEffect(c)
......@@ -55,7 +56,7 @@ function cm.initial_effect(c)
end
function cm.splimit(e,se,sp,st)
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
function cm.condition(e,tp)
return Duel.IsExistingMatchingCard(nil,tp,LOCATION_SZONE,0,4,nil)
......
......@@ -10,9 +10,6 @@ function c66915079.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOEXTRA)
e1:SetType(EFFECT_TYPE_ACTIVATE)
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)
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
......
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