Commit 031b7e94 authored by 聖園ミカ's avatar 聖園ミカ 🐟

1+1=3

parent 1104ec71
......@@ -39,8 +39,7 @@ function s.spop1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.spfil,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,nil,e,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or g:GetCount()<=0 then return end
local sg=g:Select(tp,1,1,nil)
if Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) then
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)7
end
function s.tfilter(c,tp)
......
......@@ -5,7 +5,7 @@ function cm.initial_effect(c)
--fusion
c:EnableReviveLimit()
--material
aux.AddFusionProcFunFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xccf),s.matfilter,1,1,true)
aux.AddFusionProcFunFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xccf),cm.matfilter,1,1,true)
--public
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
......
--超龙帝 尼克·overlord
Duel.LoadScript("c16199990.lua")
local m,cm=rk.set(16120001,nil,1)
function c16120001.initial_effect(c)
--xyz summon
......
......@@ -3,7 +3,7 @@ local m=16400039
local cm=_G["c"..m]
Duel.LoadScript("c16199990.lua")
function cm.initial_effect(c)
local e1=rsef.ACT(c,nil,nil,{1,m,1},"se,th,tg",nil,nil,nil,rsop.target(cm.thfilter,"th",LOCATION_DECK),cm.thop)
local e1=rsef.ACT(c,nil,nil,{1,m,1},"se,th,tg",nil,nil,nil,rsop.target(cm.thfilter,"th",LOCATION_DECK),cm.thop)
local e2=rsef.I(c,nil,{1,m+100},"th",nil,LOCATION_SZONE,nil,rsop.target(cm.thfilter1,"th",LOCATION_DECK+LOCATION_GRAVE),cm.thop1)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
......
......@@ -17,16 +17,16 @@ function s.spsummon(c)
Duel.RegisterEffect(ge1,0)
end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetHintTiming(0,TIMING_MAIN_END)
e1:SetCountLimit(1,id)
e1:SetCondition(s.spcon)
e1:SetCost(s.bfgcost)
e1:SetCondition(s.spcon)
e1:SetCost(aux.bfgcost)
e1:SetTarget(s.sptg)
e1:SetOperation(s.spop)
c:RegisterEffect(e1)
......@@ -65,31 +65,31 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.spsummon2(c)
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_REMOVED)
e1:SetCountLimit(1,id-1000)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(s.sptg2)
e1:SetOperation(s.spop2)
c:RegisterEffect(e1)
end
function s.spfilter(c)
return aux.IsCodeListed(c,47390371) and c:IsAbleToRemove()
return aux.IsCodeListed(c,47390371) and c:IsAbleToRemove()
end
function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
local c=e:GetHandler()
if chkc then return s.spfilter(chkc) and chkc:IsLocation(LOCATION_GRAVE) end
if chk==0 then return Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil)
and Duel.GetMZoneCount(tp)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local tg=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,tg,#tg,0,0)
if chk==0 then return Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil)
and Duel.GetMZoneCount(tp)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local tg=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,tg,#tg,0,0)
end
function s.spop2(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
......@@ -97,11 +97,11 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
e1:SetTargetRange(1,0)
e1:SetTarget(s.splimit)
Duel.RegisterEffect(e1,tp)
if Duel.GetMZoneCount(tp)<1 then return end
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
if Duel.GetMZoneCount(tp)<1 then return end
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
......@@ -112,7 +112,7 @@ function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)
end
function s.initial_effect(c)
aux.AddCodeList(c,47390371)
s.spsummon(c)
s.spsummon2(c)
s.spsummon(c)
s.spsummon2(c)
end
--尤娜·希斯 偷闲ing
local m=5084003
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
cm.YunaHeath=true
function cm.initial_effect(c)
Tenka.YunaHeath(c)
......
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