Commit 85c12ad8 authored by GuGu's avatar GuGu

Update c86379047.lua

parent 7be8e64d
Pipeline #42638 passed with stage
in 5 seconds
...@@ -141,24 +141,29 @@ function c86379047.mop(e,tp,eg,ep,ev,re,r,rp) ...@@ -141,24 +141,29 @@ function c86379047.mop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if tg:GetCount()>0 then if tg:GetCount()>0 then
local sg1=tg:Filter(Card.IsControler,nil,tp) local sg1=tg:Filter(Card.IsControler,nil,cp)
local sg2=tg:Filter(Card.IsControler,nil,1-tp) local sg2=tg:Filter(Card.IsControler,nil,1-cp)
if sg1:GetCount()>0 then if sg1:GetCount()>0 then
local scc1=sg1:GetFirst() local scc1=sg1:GetFirst()
while scc1 do while scc1 do
local seq=scc1:GetSequence() local seq=scc1:GetSequence()
if seq==5 and Duel.CheckLocation(tp,LOCATION_MZONE,1) then if seq==5 and Duel.CheckLocation(cp,LOCATION_MZONE,1) then
Duel.MoveSequence(scc1,1) Duel.MoveSequence(scc1,1)
elseif seq==6 and Duel.CheckLocation(tp,LOCATION_MZONE,3) then elseif seq==6 and Duel.CheckLocation(cp,LOCATION_MZONE,3) then
Duel.MoveSequence(scc1,3) Duel.MoveSequence(scc1,3)
elseif (seq>0 and seq<4) and ((seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1)) elseif (seq>0 and seq<4) and ((seq>0 and Duel.CheckLocation(cp,LOCATION_MZONE,seq-1))
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1))) then or (seq<4 and Duel.CheckLocation(cp,LOCATION_MZONE,seq+1))) then
local flag=0 local flag=0
if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end if seq>0 and Duel.CheckLocation(cp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end
if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end if seq<4 and Duel.CheckLocation(cp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end
flag=bit.bxor(flag,0xff) flag=bit.bxor(flag,0xff)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE) Duel.Hint(HINT_SELECTMSG,c:GetSummonPlayer(),HINTMSG_TOZONE)
local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag) local s=0
if c:GetSummonPlayer()==cp then
s=Duel.SelectDisableField(c:GetSummonPlayer(),1,LOCATION_MZONE,0,flag)
else
s=Duel.SelectDisableField(c:GetSummonPlayer(),1,0,LOCATION_MZONE,flag)
end
local nseq=0 local nseq=0
if s==1 then nseq=0 if s==1 then nseq=0
elseif s==2 then nseq=1 elseif s==2 then nseq=1
...@@ -174,9 +179,9 @@ function c86379047.mop(e,tp,eg,ep,ev,re,r,rp) ...@@ -174,9 +179,9 @@ function c86379047.mop(e,tp,eg,ep,ev,re,r,rp)
local scc2=sg2:GetFirst() local scc2=sg2:GetFirst()
while scc2 do while scc2 do
local seq2=scc2:GetSequence() local seq2=scc2:GetSequence()
if seq2==5 and Duel.CheckLocation(1-tp,LOCATION_MZONE,1) then if seq2==5 and Duel.CheckLocation(1-cp,LOCATION_MZONE,1) then
Duel.MoveSequence(scc2,1) Duel.MoveSequence(scc2,1)
elseif seq2==6 and Duel.CheckLocation(1-tp,LOCATION_MZONE,3) then elseif seq2==6 and Duel.CheckLocation(1-cp,LOCATION_MZONE,3) then
Duel.MoveSequence(scc2,3) Duel.MoveSequence(scc2,3)
end end
scc2=sg2:GetNext() scc2=sg2:GetNext()
......
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