Commit 71965d98 authored by salix5's avatar salix5

Merge pull request #110 from nekrozar/patch-1

fix Storm Shooter, Rampaging Rhynos, Alien Infiltrator
parents f1bf8dbe 77c73049
......@@ -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))
end
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))
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then
local flag=0
......@@ -39,7 +41,7 @@ function c3784434.seqop(e,tp,eg,ep,ev,re,r,rp)
elseif s==4 then nseq=2
elseif s==8 then nseq=3
else nseq=4 end
Duel.MoveSequence(e:GetHandler(),nseq)
Duel.MoveSequence(c,nseq)
end
end
function c3784434.dircon(e,tp)
......
......@@ -33,7 +33,9 @@ function c39188539.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
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))
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then
local flag=0
......@@ -47,7 +49,7 @@ function c39188539.seqop(e,tp,eg,ep,ev,re,r,rp)
elseif s==4 then nseq=2
elseif s==8 then nseq=3
else nseq=4 end
Duel.MoveSequence(e:GetHandler(),nseq)
Duel.MoveSequence(c,nseq)
end
end
function c39188539.filter(c,seq)
......
......@@ -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))
end
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))
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) then
local flag=0
......@@ -36,7 +38,7 @@ function c76573247.seqop(e,tp,eg,ep,ev,re,r,rp)
elseif s==4 then nseq=2
elseif s==8 then nseq=3
else nseq=4 end
Duel.MoveSequence(e:GetHandler(),nseq)
Duel.MoveSequence(c,nseq)
end
end
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