Commit 8e2260cb authored by Tachibana's avatar Tachibana

ybb

parent 0bbfe4b7
Pipeline #10193 passed with stages
in 36 minutes and 14 seconds
No preview for this file type
......@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1:SetCategory(CATEGORY_RECOVER)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.rccon)
e1:SetTarget(cm.rctg)
......
......@@ -53,7 +53,7 @@ function cm.splimit(e,c)
return not (c:IsSetCard(0xccb,0xccd) or c:IsRace(RACE_FAIRY))
end
--Effect 2
function cm.filter(c,e,tp)
function cm.spfilter(c,e,tp)
return c:IsSetCard(0xccb)
and c:IsType(TYPE_MONSTER)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
......@@ -62,7 +62,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local minc,maxc=c:GetTributeRequirement()
local b1=c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
local b2=Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
local b2=Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
if chk==0 then return (b1 or b2) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
local off=1
local ops={}
......@@ -97,7 +97,7 @@ end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
......
......@@ -42,6 +42,7 @@ function cm.initial_effect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_CHAIN_SOLVING)
e4:SetRange(LOCATION_MZONE)
e4:SetCondition(cm.condition)
e4:SetOperation(cm.disoperation)
c:RegisterEffect(e4)
--
......@@ -93,7 +94,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
g:Merge(rg)
end
if re:GetHandler():IsControler(tp) then
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and (c:GetSequence()==seq or (c:GetEquipGroup() and c:GetEquipGroup():IsExists(cm.disfilter,1,nil,seq))) and not rg:IsContains(re:GetHandler()) and c:IsSummonType(SUMMON_TYPE_ADVANCE) and loc&LOCATION_SZONE~=0
return false
else
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and (c:GetSequence()==4-seq or (c:GetEquipGroup() and c:GetEquipGroup():IsExists(cm.disfilter,1,nil,4-seq))) and not rg:IsContains(re:GetHandler()) and c:IsSummonType(SUMMON_TYPE_ADVANCE) and loc&LOCATION_SZONE~=0
end
......
......@@ -2,7 +2,7 @@
function c66915035.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunFunRep(c,c66915035.mfilter1,c66915035.mfilter2,2,63,true)
aux.AddFusionProcFunFunRep(c,c66915035.mfilter1,c66915035.mfilter2,2,5,true)
--spsummon condition
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE)
......
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