Commit 3d17e55e authored by CubeRuler's avatar CubeRuler

fixed

parent fd63c6f5
Pipeline #15228 passed with stages
in 31 minutes and 14 seconds
......@@ -45,7 +45,7 @@ function cm.e01op(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandlerPlayer()
local c=e:GetHandler()
local seq=c:GetSequence()
local nseq=math.randomseed(0,4)
local nseq=Duel.TossDice(tp,1)-1
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
......@@ -54,27 +54,12 @@ function cm.e01op(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
if Duel.GetLocationCount(tp,LOCATION_MZONE)==0 then
return false
else
if Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq)then
Duel.MoveSequence(c,nseq)
elseif seq~=4 and Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq+1)then
Duel.MoveSequence(c,nseq+1)
elseif seq~=0 and Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq-1) then
Duel.MoveSequence(c,nseq-1)
elseif nseq+2<=4 and Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq+2)then
Duel.MoveSequence(c,nseq+2)
elseif nseq-2>=0 and Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq-2)then
Duel.MoveSequence(c,nseq-2)
elseif nseq-3>=0 and Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq-3)then
Duel.MoveSequence(c,nseq-3)
elseif nseq+3<=4 and Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq+3)then
Duel.MoveSequence(c,nseq+3)
elseif nseq-4>=0 and Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq-4)then
Duel.MoveSequence(c,nseq-4)
elseif nseq+4<=4 and Duel.CheckLocation(e:GetHandlerPlayer(),LOCATION_MZONE,nseq+4)then
Duel.MoveSequence(c,nseq+4)
end
while nseq>4 or not Duel.CheckLocation(tp,LOCATION_MZONE,nseq) do
nseq=Duel.TossDice(tp,1)-1
end
Duel.MoveSequence(c,nseq)
if Duel.IsExistingMatchingCard(cm.tgfilter,tp,0,LOCATION_MZONE,1,nil)
and Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.BreakEffect()
......
......@@ -62,7 +62,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK)
end
end
end
......
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