Commit 4c65bdc7 authored by POLYMER's avatar POLYMER

fix

parent f6948963
...@@ -27,6 +27,7 @@ function c12835101.initial_effect(c) ...@@ -27,6 +27,7 @@ function c12835101.initial_effect(c)
e5:SetType(EFFECT_TYPE_FIELD) e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_PUBLIC) e5:SetCode(EFFECT_PUBLIC)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetCondition(c12835101.con)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+0x200) e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+0x200)
e5:SetTargetRange(2,0) e5:SetTargetRange(2,0)
c:RegisterEffect(e5) c:RegisterEffect(e5)
......
...@@ -90,7 +90,7 @@ function c12835102.con6(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,7 +90,7 @@ function c12835102.con6(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
local seq=tc:GetSequence() local seq=tc:GetSequence()
local tp=tc:GetControler() local tp=tc:GetControler()
return rp==1-tp and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and #g>0 and g:IsContains(tc) and c:GetFlagEffect(12835102)==0 and ((seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1)) or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1))) return rp==1-tp and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and #g>0 and g:IsContains(tc) and c:GetFlagEffect(12835102)==0 and ((seq>0 and Duel.CheckLocation(c:GetControler(),LOCATION_MZONE,seq-1)) or (seq<4 and Duel.CheckLocation(c:GetControler(),LOCATION_MZONE,seq+1)))
end end
function c12835102.op6(e,tp,eg,ep,ev,re,r,rp) function c12835102.op6(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectYesNo(tp,aux.Stringid(12835102,1)) then if Duel.SelectYesNo(tp,aux.Stringid(12835102,1)) then
...@@ -102,13 +102,14 @@ function c12835102.op6(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,13 +102,14 @@ function c12835102.op6(e,tp,eg,ep,ev,re,r,rp)
local seq=tc:GetSequence() local seq=tc:GetSequence()
if seq>4 then return end if seq>4 then return end
local flag=0 local flag=0
if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then if seq>0 and Duel.CheckLocation(c:GetControler(),LOCATION_MZONE,seq-1) then
flag=flag|(1<<(seq-1)) end flag=flag|(1<<(seq-1)) end
if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then if seq<4 and Duel.CheckLocation(c:GetControler(),LOCATION_MZONE,seq+1) then
flag=flag|(1<<(seq+1)) end flag=flag|(1<<(seq+1)) end
if flag==0 then return end if flag==0 then return end
Duel.Hint(3,tp,HINTMSG_TOZONE) Duel.Hint(3,tp,HINTMSG_TOZONE)
local s=Duel.SelectField(tp,1,LOCATION_MZONE,0,~flag) local s=Duel.SelectField(tp,1,LOCATION_MZONE,LOCATION_MZONE,~flag)
if c:GetControler()~=tp then s=s>>16 end
local nseq=math.log(s,2) local nseq=math.log(s,2)
Duel.MoveSequence(tc,nseq) Duel.MoveSequence(tc,nseq)
local g=Group.CreateGroup() local g=Group.CreateGroup()
...@@ -124,7 +125,7 @@ function c12835102.con62(e,tp,eg,ep,ev,re,r,rp) ...@@ -124,7 +125,7 @@ function c12835102.con62(e,tp,eg,ep,ev,re,r,rp)
local seq=tc:GetSequence() local seq=tc:GetSequence()
local tp=tc:GetControler() local tp=tc:GetControler()
if re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and #g>0 and g:IsContains(tc) then return false end if re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and #g>0 and g:IsContains(tc) then return false end
return rp==1-tp and Duel.GetFlagEffect(tp,12835102)>0 and c:GetFlagEffect(12835102)==0 and ((seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1)) or (seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1))) return rp==1-tp and Duel.GetFlagEffect(tp,12835102)>0 and c:GetFlagEffect(12835102)==0 and ((seq>0 and Duel.CheckLocation(c:GetControler(),LOCATION_MZONE,seq-1)) or (seq<4 and Duel.CheckLocation(c:GetControler(),LOCATION_MZONE,seq+1)))
end end
function c12835102.op62(e,tp,eg,ep,ev,re,r,rp) function c12835102.op62(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectYesNo(tp,aux.Stringid(12835102,2)) then if Duel.SelectYesNo(tp,aux.Stringid(12835102,2)) then
...@@ -137,13 +138,14 @@ function c12835102.op62(e,tp,eg,ep,ev,re,r,rp) ...@@ -137,13 +138,14 @@ function c12835102.op62(e,tp,eg,ep,ev,re,r,rp)
local seq=tc:GetSequence() local seq=tc:GetSequence()
if seq>4 then return end if seq>4 then return end
local flag=0 local flag=0
if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then if seq>0 and Duel.CheckLocation(c:GetControler(),LOCATION_MZONE,seq-1) then
flag=flag|(1<<(seq-1)) end flag=flag|(1<<(seq-1)) end
if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then if seq<4 and Duel.CheckLocation(c:GetControler(),LOCATION_MZONE,seq+1) then
flag=flag|(1<<(seq+1)) end flag=flag|(1<<(seq+1)) end
if flag==0 then return end if flag==0 then return end
Duel.Hint(3,tp,HINTMSG_TOZONE) Duel.Hint(3,tp,HINTMSG_TOZONE)
local s=Duel.SelectField(tp,1,LOCATION_MZONE,0,~flag) local s=Duel.SelectField(tp,1,LOCATION_MZONE,LOCATION_MZONE,~flag)
if c:GetControler()~=tp then s=s>>16 end
local nseq=math.log(s,2) local nseq=math.log(s,2)
Duel.MoveSequence(tc,nseq) Duel.MoveSequence(tc,nseq)
local g=Group.CreateGroup() local g=Group.CreateGroup()
......
...@@ -47,6 +47,7 @@ function c28351818.reop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,6 +47,7 @@ function c28351818.reop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1,true) e:GetHandler():RegisterEffect(e1,true)
end end
...@@ -79,6 +80,7 @@ function c28351818.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,6 +80,7 @@ function c28351818.thop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1,true) e:GetHandler():RegisterEffect(e1,true)
end end
......
...@@ -57,6 +57,7 @@ function c28352012.reop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,6 +57,7 @@ function c28352012.reop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1,true) e:GetHandler():RegisterEffect(e1,true)
end end
...@@ -99,6 +100,7 @@ function c28352012.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -99,6 +100,7 @@ function c28352012.tdop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1,true) e:GetHandler():RegisterEffect(e1,true)
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