Commit 0311b2af authored by 聖園ミカ's avatar 聖園ミカ 🐟

man!

parent f26a663d
...@@ -56,7 +56,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -56,7 +56,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -136,7 +136,7 @@ function s.seqfilter(c,seq,tp) ...@@ -136,7 +136,7 @@ function s.seqfilter(c,seq,tp)
local cseq=c:GetSequence() local cseq=c:GetSequence()
local cloc=c:GetLocation() local cloc=c:GetLocation()
if c:IsControler(tp) then if c:IsControler(tp) then
return sseq==5 and seq==3 or sseq==6 and seq==1 return (cseq==5 and seq==3) or (cseq==6 and seq==1)
end end
if cloc==LOCATION_SZONE and cseq>=5 then return false end if cloc==LOCATION_SZONE and cseq>=5 then return false end
if cloc==LOCATION_MZONE and cseq>=5 and loc==LOCATION_MZONE if cloc==LOCATION_MZONE and cseq>=5 and loc==LOCATION_MZONE
......
--祈星魔女之凭依 --祈星魔女之凭依
local m=18700151 local m=18700151
local cm=_G["c"..m] local cm=_G["c"..m]
Duel.LoadScript("1.lua") xpcall(function() require("expansions/script/1") end,function() require("script/1") end)
function cm.initial_effect(c) function cm.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -63,11 +63,13 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,11 +63,13 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.GetMatchingGroup(cm.cfilter1,tp,LOCATION_HAND+LOCATION_ONFIELD,0,e:GetHandler(),tp,Card.IsReleasable) local g=Duel.GetMatchingGroup(cm.cfilter1,tp,LOCATION_HAND+LOCATION_ONFIELD,0,e:GetHandler(),tp,Card.IsReleasable)
local tc=g:SelectUnselect(nil,tp,false,true,1,1) local tc=g:SelectUnselect(nil,tp,false,true,1,1)
Duel.Release(tc,REASON_RELEASE) if tc then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Release(tc,REASON_RELEASE)
local g2=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if g2:GetCount()>0 then local g2=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP) if g2:GetCount()>0 then
Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP)
end
end end
local e0=Effect.CreateEffect(e:GetHandler()) local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD) e0:SetType(EFFECT_TYPE_FIELD)
......
--星祓祈祷 --星祓祈祷
local m=18700196 local m=18700196
local cm=_G["c"..m] local cm=_G["c"..m]
Duel.LoadScript("1.lua") xpcall(function() require("expansions/script/1") end,function() require("script/1") end)
function cm.initial_effect(c) function cm.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,0))
...@@ -36,7 +36,7 @@ function cm.mfilter(c,e) ...@@ -36,7 +36,7 @@ function cm.mfilter(c,e)
return (c:IsType(TYPE_PENDULUM) or c:IsType(TYPE_SPELL)) and c:IsReleasableByEffect(e) return (c:IsType(TYPE_PENDULUM) or c:IsType(TYPE_SPELL)) and c:IsReleasableByEffect(e)
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:IsType(TYPE_RITUAL) return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER)
end end
function cm.GetCappedLeftScale(c) function cm.GetCappedLeftScale(c)
local level=c:GetLeftScale() local level=c:GetLeftScale()
...@@ -119,7 +119,7 @@ function cm.RitualCheckAdditional(c,level,greater_or_equal) ...@@ -119,7 +119,7 @@ function cm.RitualCheckAdditional(c,level,greater_or_equal)
if level==0 then return #g<=1 end if level==0 then return #g<=1 end
if ec then if ec then
local link3=g:GetSum(cm.GetCappedLeftScale) local link3=g:GetSum(cm.GetCappedLeftScale)
return (not aux.RGCheckAdditional or aux.RGCheckAdditional(g,ec)) and link3-cm.GetCappedLevel(ec)<=level return (not aux.RGCheckAdditional or aux.RGCheckAdditional(g,ec)) and link3-ec:GetLevel()>0
else else
return not aux.RGCheckAdditional or aux.RGCheckAdditional(g) return not aux.RGCheckAdditional or aux.RGCheckAdditional(g)
end 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