Commit ddbde5d5 authored by TanakaKotoha's avatar TanakaKotoha

iidx goooooooooooooooold

parent d6977a84
Pipeline #144 failed with stages
in 27 minutes and 6 seconds
--幸福论诞生 --幸福论诞生
function c81010057.initial_effect(c) function c81010033.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c81010057.cost) e1:SetCost(c81010033.cost)
e1:SetTarget(c81010057.target) e1:SetTarget(c81010033.target)
e1:SetOperation(c81010057.activate) e1:SetOperation(c81010033.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.AddCustomActivityCounter(81010057,ACTIVITY_SUMMON,c81010057.counterfilter) Duel.AddCustomActivityCounter(81010033,ACTIVITY_SUMMON,c81010033.counterfilter)
Duel.AddCustomActivityCounter(81010057,ACTIVITY_SPSUMMON,c81010057.counterfilter) Duel.AddCustomActivityCounter(81010033,ACTIVITY_SPSUMMON,c81010033.counterfilter)
Duel.AddCustomActivityCounter(81010057,ACTIVITY_FLIPSUMMON,c81010057.counterfilter) Duel.AddCustomActivityCounter(81010033,ACTIVITY_FLIPSUMMON,c81010033.counterfilter)
Duel.AddCustomActivityCounter(81010057,ACTIVITY_CHAIN,c81010057.chainfilter) Duel.AddCustomActivityCounter(81010033,ACTIVITY_CHAIN,c81010033.chainfilter)
end end
function c81010057.chainfilter(re,tp) function c81010033.chainfilter(re,tp)
return not re:IsActiveType(TYPE_MONSTER) return not re:IsActiveType(TYPE_MONSTER)
end end
function c81010057.counterfilter(c) function c81010033.counterfilter(c)
return not c:IsType(TYPE_EFFECT) return not c:IsType(TYPE_EFFECT)
end end
function c81010057.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c81010033.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(81010057,tp,ACTIVITY_SUMMON)==0 if chk==0 then return Duel.GetCustomActivityCount(81010033,tp,ACTIVITY_SUMMON)==0
and Duel.GetCustomActivityCount(81010057,tp,ACTIVITY_SPSUMMON)==0 and Duel.GetCustomActivityCount(81010033,tp,ACTIVITY_SPSUMMON)==0
and Duel.GetCustomActivityCount(81010057,tp,ACTIVITY_FLIPSUMMON)==0 and Duel.GetCustomActivityCount(81010057,tp,ACTIVITY_CHAIN)==0 end and Duel.GetCustomActivityCount(81010033,tp,ACTIVITY_FLIPSUMMON)==0 and Duel.GetCustomActivityCount(81010033,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)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetTarget(c81010057.sumlimit) e1:SetTarget(c81010033.sumlimit)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SUMMON) e2:SetCode(EFFECT_CANNOT_SUMMON)
...@@ -44,38 +44,38 @@ function c81010057.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,38 +44,38 @@ function c81010057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e4:SetCode(EFFECT_CANNOT_ACTIVATE) e4:SetCode(EFFECT_CANNOT_ACTIVATE)
e4:SetTargetRange(1,0) e4:SetTargetRange(1,0)
e4:SetValue(c81010057.aclimit) e4:SetValue(c81010033.aclimit)
e4:SetReset(RESET_PHASE+PHASE_END) e4:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end end
function c81010057.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c81010033.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsType(TYPE_EFFECT) return c:IsType(TYPE_EFFECT)
end end
function c81010057.aclimit(e,re,tp) function c81010033.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) return re:IsActiveType(TYPE_MONSTER)
end end
function c81010057.tgfilter(c,e,tp) function c81010033.tgfilter(c,e,tp)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WIND) and c:IsType(TYPE_NORMAL) and c:IsLevel(8) and c:IsCanBeFusionMaterial() return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WIND) and c:IsType(TYPE_NORMAL) and c:IsLevel(8) and c:IsCanBeFusionMaterial()
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_FMATERIAL) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_FMATERIAL)
and Duel.IsExistingMatchingCard(c81010057.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) and Duel.IsExistingMatchingCard(c81010033.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c)
end end
function c81010057.spfilter(c,e,tp,tc) function c81010033.spfilter(c,e,tp,tc)
return aux.IsMaterialListCode(c,tc:GetCode()) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) return aux.IsMaterialListCode(c,tc:GetCode()) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
and Duel.GetLocationCountFromEx(tp,tp,tc,c)>0 and Duel.GetLocationCountFromEx(tp,tp,tc,c)>0
end end
function c81010057.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c81010033.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc==0 then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c81010057.tgfilter(chkc,e,tp) end if chkc==0 then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c81010033.tgfilter(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c81010057.tgfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingTarget(c81010033.tgfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c81010057.tgfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp) Duel.SelectTarget(tp,c81010033.tgfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function c81010057.activate(e,tp,eg,ep,ev,re,r,rp) function c81010033.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not aux.MustMaterialCheck(tc,tp,EFFECT_MUST_BE_FMATERIAL) then return end if not aux.MustMaterialCheck(tc,tp,EFFECT_MUST_BE_FMATERIAL) then return end
if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsCanBeFusionMaterial() and not tc:IsImmuneToEffect(e) then if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsCanBeFusionMaterial() and not tc:IsImmuneToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c81010057.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc) local sg=Duel.SelectMatchingCard(tp,c81010033.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc)
local sc=sg:GetFirst() local sc=sg:GetFirst()
if sc then if sc then
sc:SetMaterial(Group.FromCards(tc)) sc:SetMaterial(Group.FromCards(tc))
......
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