Commit 286ef71a authored by mercury233's avatar mercury233 Committed by GitHub

fix ボルテスター

parent d3b8b2f3
...@@ -31,6 +31,7 @@ function c18585765.desfilter2(g) ...@@ -31,6 +31,7 @@ function c18585765.desfilter2(g)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local fid=tc:GetFieldID() local fid=tc:GetFieldID()
tc:RegisterFlagEffect(18585766,RESET_CHAIN,0,1,fid)
local lg=tc:GetLinkedGroup() local lg=tc:GetLinkedGroup()
local sc=lg:GetFirst() local sc=lg:GetFirst()
while sc do while sc do
...@@ -43,13 +44,13 @@ function c18585765.desfilter2(g) ...@@ -43,13 +44,13 @@ function c18585765.desfilter2(g)
return sg return sg
end end
function c18585765.desfilter3(c,g) function c18585765.desfilter3(c,g)
local res=false
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
if c:GetFlagEffectLabel(18585765)==tc:GetFieldID() then res=true end local fid=tc:GetFlagEffectLabel(18585766)
if fid~=nil and c:GetFlagEffectLabel(18585765)==fid then return true end
tc=g:GetNext() tc=g:GetNext()
end end
return res return false
end end
function c18585765.desop(e,tp,eg,ep,ev,re,r,rp) function c18585765.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c18585765.desfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetHandler()) local g=Duel.GetMatchingGroup(c18585765.desfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetHandler())
...@@ -60,7 +61,7 @@ function c18585765.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +61,7 @@ function c18585765.desop(e,tp,eg,ep,ev,re,r,rp)
while sg:GetCount()>0 do while sg:GetCount()>0 do
Duel.BreakEffect() Duel.BreakEffect()
lg=c18585765.desfilter2(sg) lg=c18585765.desfilter2(sg)
if Duel.Destroy(g,REASON_EFFECT)==0 then return end if Duel.Destroy(sg,REASON_EFFECT)==0 then return end
og=Duel.GetOperatedGroup() og=Duel.GetOperatedGroup()
sg=lg:Filter(c18585765.desfilter3,e:GetHandler(),og) sg=lg:Filter(c18585765.desfilter3,e:GetHandler(),og)
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