Commit 676511c2 authored by Huangnan's avatar Huangnan

fix

parent 3e382ffd
Pipeline #38383 passed with stages
in 57 minutes and 38 seconds
...@@ -105,22 +105,21 @@ function cm.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,22 +105,21 @@ function cm.effop(e,tp,eg,ep,ev,re,r,rp)
rc:RegisterEffect(e5,true) rc:RegisterEffect(e5,true)
end end
function cm.movtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.movtg(e,tp,eg,ep,ev,re,r,rp,chk)
local at=Duel.GetFieldCard(tp,LOCATION_MZONE,5) local at=Duel.GetFieldCard(tp,LOCATION_MZONE,5)
local bt=Duel.GetFieldCard(tp,LOCATION_MZONE,6) local bt=Duel.GetFieldCard(tp,LOCATION_MZONE,6)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)>0 or not at or not bt end
or and not (at or bt) end
end end
function cm.movop(e,tp,eg,ep,ev,re,r,rp) function cm.movop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local at=Duel.GetFieldCard(tp,LOCATION_MZONE,5) local at=Duel.GetFieldCard(tp,LOCATION_MZONE,5)
local bt=Duel.GetFieldCard(tp,LOCATION_MZONE,6) local bt=Duel.GetFieldCard(tp,LOCATION_MZONE,6)
local b1=Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)>0 local b1=Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)>0
local b2=not Duel.GetFieldCard(tp,LOCATION_MZONE,5) and (Duel.GetFieldCard(tp,LOCATION_MZONE,6):IsControler(1-tp) or not Duel.GetFieldCard(tp,LOCATION_MZONE,6)) local b2=not Duel.GetFieldCard(tp,LOCATION_MZONE,5)
local b3=not Duel.GetFieldCard(tp,LOCATION_MZONE,6) and (Duel.GetFieldCard(tp,LOCATION_MZONE,5):IsControler(1-tp) or not Duel.GetFieldCard(tp,LOCATION_MZONE,5)) local b3=not Duel.GetFieldCard(tp,LOCATION_MZONE,6)
if tc:IsControler(1-tp) or Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)<=0 or (Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)<=0 local c=e:GetHandler()
and (at or bt)) then return end if c:IsControler(1-tp) or Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)<=0 or (Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)<=0 and (at or bt)) then return end
local op=aux.SelectFromOptions(tp, local op=aux.SelectFromOptions(tp,
{b1,aux.Stringid(m,7)}, {b1,aux.Stringid(m,7)},
{b2,aux.Stringid(m,8)}, {b2,aux.Stringid(m,8)},
...@@ -136,12 +135,6 @@ function cm.movop(e,tp,eg,ep,ev,re,r,rp) ...@@ -136,12 +135,6 @@ function cm.movop(e,tp,eg,ep,ev,re,r,rp)
if op==3 then if op==3 then
Duel.MoveSequence(c,6) Duel.MoveSequence(c,6)
end end
else
if tc:IsControler(1-tp) or Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)<=0 then return end
local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,0)
local nseq=math.log(s,2)
Duel.MoveSequence(c,nseq)
end
end end
function cm.efilter(e,te) function cm.efilter(e,te)
return te:GetHandler():IsLocation(LOCATION_MZONE) and e:GetHandler():GetLinkedGroup():IsContains(te:GetHandler()) return te:GetHandler():IsLocation(LOCATION_MZONE) and e:GetHandler():GetLinkedGroup():IsContains(te:GetHandler())
......
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