Commit c55031fc authored by nekrozar's avatar nekrozar Committed by DailyShana

fix Senet Switch (#831)

* fix
* fix
parent a2ee0cb8
...@@ -18,6 +18,7 @@ function c63394872.initial_effect(c) ...@@ -18,6 +18,7 @@ function c63394872.initial_effect(c)
end end
function c63394872.filter(c,tp) function c63394872.filter(c,tp)
local seq=c:GetSequence() local seq=c:GetSequence()
if seq>4 then return false end
return (seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1)) return (seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1))
or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1))
end end
...@@ -32,6 +33,7 @@ function c63394872.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,6 +33,7 @@ function c63394872.seqop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or tc:IsControler(1-tp) then return end if not tc:IsRelateToEffect(e) or tc:IsControler(1-tp) then return end
local seq=tc:GetSequence() local seq=tc:GetSequence()
if seq>4 then return end
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
......
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