Commit 775bab61 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c16138025.lua

parent f49fb102
Pipeline #32430 passed with stages
in 32 minutes and 19 seconds
...@@ -133,15 +133,8 @@ function s.desfilter(c) ...@@ -133,15 +133,8 @@ function s.desfilter(c)
return not c:IsLocation(LOCATION_SZONE) or c:GetSequence()<5 return not c:IsLocation(LOCATION_SZONE) or c:GetSequence()<5
end end
function s.seqfilter(c,seq,tp) function s.seqfilter(c,seq,tp)
local loc=LOCATION_MZONE
if seq>=8 then
loc=LOCATION_SZONE
seq=seq-8
end
if seq>=5 and loc==LOCATION_SZONE then return false end
if seq==7 and loc==LOCATION_MZONE then return false end
local cseq=c:GetSequence() local cseq=c:GetSequence()
local cloc=c:GetLocation() Debug.Message(cseq)
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
and (seq==1 and cseq==5 or seq==3 and cseq==6 or seq==cseq) then return true end and (seq==1 and cseq==5 or seq==3 and cseq==6 or seq==cseq) then return true end
...@@ -158,8 +151,8 @@ function s.seqtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -158,8 +151,8 @@ function s.seqtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.seqop(e,tp,eg,ep,ev,re,r,rp) function s.seqop(e,tp,eg,ep,ev,re,r,rp)
local filter=0 local filter=0
for i=0,15 do for i=0,6 do
if not Duel.IsExistingMatchingCard(s.seqfilter,tp,0,LOCATION_MZONE,1,nil,i,tp) then if not Duel.IsExistingMatchingCard(s.seqfilter,tp,0,LOCATION_ONFIELD,1,nil,i,tp) then
filter=filter|1<<(i+16) filter=filter|1<<(i+16)
end end
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