Commit 77c73049 authored by nekrozar's avatar nekrozar

fix

parent 6cba898b
...@@ -25,7 +25,9 @@ function c3784434.seqcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,7 +25,9 @@ function c3784434.seqcon(e,tp,eg,ep,ev,re,r,rp)
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1))
end end
function c3784434.seqop(e,tp,eg,ep,ev,re,r,rp) function c3784434.seqop(e,tp,eg,ep,ev,re,r,rp)
local seq=e:GetHandler():GetSequence() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsControler(1-tp) then return end
local seq=c:GetSequence()
if (seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1)) if (seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1))
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then
local flag=0 local flag=0
...@@ -39,7 +41,7 @@ function c3784434.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +41,7 @@ function c3784434.seqop(e,tp,eg,ep,ev,re,r,rp)
elseif s==4 then nseq=2 elseif s==4 then nseq=2
elseif s==8 then nseq=3 elseif s==8 then nseq=3
else nseq=4 end else nseq=4 end
Duel.MoveSequence(e:GetHandler(),nseq) Duel.MoveSequence(c,nseq)
end end
end end
function c3784434.dircon(e,tp) function c3784434.dircon(e,tp)
......
...@@ -33,7 +33,9 @@ function c39188539.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,9 @@ function c39188539.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c39188539.seqop(e,tp,eg,ep,ev,re,r,rp) function c39188539.seqop(e,tp,eg,ep,ev,re,r,rp)
local seq=e:GetHandler():GetSequence() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsControler(1-tp) then return end
local seq=c:GetSequence()
if (seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1)) if (seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1))
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then
local flag=0 local flag=0
...@@ -47,7 +49,7 @@ function c39188539.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +49,7 @@ function c39188539.seqop(e,tp,eg,ep,ev,re,r,rp)
elseif s==4 then nseq=2 elseif s==4 then nseq=2
elseif s==8 then nseq=3 elseif s==8 then nseq=3
else nseq=4 end else nseq=4 end
Duel.MoveSequence(e:GetHandler(),nseq) Duel.MoveSequence(c,nseq)
end end
end end
function c39188539.filter(c,seq) function c39188539.filter(c,seq)
......
...@@ -22,7 +22,9 @@ function c76573247.seqcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,7 +22,9 @@ function c76573247.seqcon(e,tp,eg,ep,ev,re,r,rp)
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1))
end end
function c76573247.seqop(e,tp,eg,ep,ev,re,r,rp) function c76573247.seqop(e,tp,eg,ep,ev,re,r,rp)
local seq=e:GetHandler():GetSequence() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsControler(1-tp) then return end
local seq=c:GetSequence()
if (seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1)) if (seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1))
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then
local flag=0 local flag=0
...@@ -36,7 +38,7 @@ function c76573247.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +38,7 @@ function c76573247.seqop(e,tp,eg,ep,ev,re,r,rp)
elseif s==4 then nseq=2 elseif s==4 then nseq=2
elseif s==8 then nseq=3 elseif s==8 then nseq=3
else nseq=4 end else nseq=4 end
Duel.MoveSequence(e:GetHandler(),nseq) Duel.MoveSequence(c,nseq)
end end
end end
function c76573247.dircon(e) function c76573247.dircon(e)
......
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