Commit 5b4523a0 authored by POLYMER's avatar POLYMER

fix

parent 226ced13
...@@ -35,15 +35,14 @@ function s.accon(e) ...@@ -35,15 +35,14 @@ function s.accon(e)
end end
function s.actarget(e,te) function s.actarget(e,te)
local tc=te:GetHandler() local tc=te:GetHandler()
e:SetLabelObject(te)
return tc:IsLocation(LOCATION_ONFIELD) and not tc:IsLocation(LOCATION_FZONE) return tc:IsLocation(LOCATION_ONFIELD) and not tc:IsLocation(LOCATION_FZONE)
end end
function s.accost(e,te) function s.accost(e,te)
e:SetLabelObject(te)
local tc=te:GetHandler() local tc=te:GetHandler()
local tp=tc:GetControler() local tp=tc:GetControler()
local seq=tc:GetSequence() local seq=tc:GetSequence()
local loc=tc:GetLocation() return tc:IsLocation(LOCATION_MZONE) and ((seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1)) or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1)) or (seq==5 and Duel.CheckLocation(tp,LOCATION_MZONE,1)) or (seq==6 and Duel.CheckLocation(tp,LOCATION_MZONE,3))) or tc:IsLocation(LOCATION_SZONE) and ((seq>0 and Duel.CheckLocation(tp,LOCATION_SZONE,seq-1)) or (seq<4 and Duel.CheckLocation(tp,LOCATION_SZONE,seq+1)))
return loc==LOCATION_MZONE and ((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,1)) or (seq==6 and Duel.CheckLocation(tp,LOCATION_MZONE,3))) or loc==LOCATION_SZONE and ((seq>0 and Duel.CheckLocation(tp,LOCATION_SZONE,seq-1)) or (seq<4 and Duel.CheckLocation(tp,LOCATION_SZONE,seq+1)))
end end
function s.acop(e,eg,ep,ev,re,r,rp) function s.acop(e,eg,ep,ev,re,r,rp)
if s[0] then return end if s[0] then return end
...@@ -72,7 +71,7 @@ function s.acop(e,eg,ep,ev,re,r,rp) ...@@ -72,7 +71,7 @@ function s.acop(e,eg,ep,ev,re,r,rp)
elseif a==0x8 or a==0x800 then nseq=3 elseif a==0x8 or a==0x800 then nseq=3
elseif a==0x10 or a==0x1000 then nseq=4 elseif a==0x10 or a==0x1000 then nseq=4
else end else end
if tc:IsLocation(LOCATION_PZONE) then Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,pos,false,a) if tc:IsLocation(LOCATION_PZONE) then Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true,a)
else Duel.MoveSequence(tc,nseq) else Duel.MoveSequence(tc,nseq)
end end
s[0]=true s[0]=true
......
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