Commit b90afa62 authored by POLYMER's avatar POLYMER

fix

parent 8b711360
...@@ -31,7 +31,8 @@ function c9910176.chainfilter(re,tp,cid) ...@@ -31,7 +31,8 @@ function c9910176.chainfilter(re,tp,cid)
return not re:IsActiveType(TYPE_TRAP) return not re:IsActiveType(TYPE_TRAP)
end end
function c9910176.spcon(e,tp,eg,ep,ev,re,r,rp) function c9910176.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>1 local chain=Duel.GetCurrentChain()
return chain>1 or (Duel.GetFlagEffect(tp,9920176)~=0 and chain>0)
end end
function c9910176.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c9910176.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -31,7 +31,8 @@ function c9910179.chainfilter(re,tp,cid) ...@@ -31,7 +31,8 @@ function c9910179.chainfilter(re,tp,cid)
return not re:IsActiveType(TYPE_TRAP) return not re:IsActiveType(TYPE_TRAP)
end end
function c9910179.spcon(e,tp,eg,ep,ev,re,r,rp) function c9910179.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>1 local chain=Duel.GetCurrentChain()
return chain>1 or (Duel.GetFlagEffect(tp,9920179)~=0 and chain>0)
end end
function c9910179.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c9910179.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -33,7 +33,7 @@ function c9910591.initial_effect(c) ...@@ -33,7 +33,7 @@ function c9910591.initial_effect(c)
local ge3=Effect.CreateEffect(c) local ge3=Effect.CreateEffect(c)
ge3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge3:SetCode(EVENT_CHAIN_SOLVED) ge3:SetCode(EVENT_CHAIN_SOLVED)
ge3:SetOperation(c9910591.checkop3) ge3:SetOperation(c9910591.checkop1)
Duel.RegisterEffect(ge3,0) Duel.RegisterEffect(ge3,0)
end end
end end
...@@ -43,7 +43,7 @@ function c9910591.checkop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c9910591.checkop1(e,tp,eg,ep,ev,re,r,rp)
local p,loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_CONTROLER,CHAININFO_TRIGGERING_LOCATION) local p,loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_CONTROLER,CHAININFO_TRIGGERING_LOCATION)
if loc~=LOCATION_MZONE then return end if loc~=LOCATION_MZONE then return end
if rc:GetFlagEffect(9910591+p)==0 then if rc:GetFlagEffect(9910591+p)==0 then
rc:RegisterFlagEffect(9910591+p,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1,1) rc:RegisterFlagEffect(9910591+p,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,1)
else else
local flag=rc:GetFlagEffectLabel(9910591+p) local flag=rc:GetFlagEffectLabel(9910591+p)
if flag then rc:SetFlagEffectLabel(9910591+p,flag+1) end if flag then rc:SetFlagEffectLabel(9910591+p,flag+1) end
...@@ -61,14 +61,6 @@ function c9910591.checkop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,14 +61,6 @@ function c9910591.checkop2(e,tp,eg,ep,ev,re,r,rp)
rc:SetFlagEffectLabel(9910591+p,flag-1) rc:SetFlagEffectLabel(9910591+p,flag-1)
end end
end end
function c9910591.checkop3(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
if not rc:IsRelateToEffect(re) or not re:IsActiveType(TYPE_MONSTER) or re:GetLabel()==9910591 then return end
local p,loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_CONTROLER,CHAININFO_TRIGGERING_LOCATION)
if loc==LOCATION_MZONE and rc:GetFlagEffect(9910593+p)==0 then
rc:RegisterFlagEffect(9910593+p,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end
end
function c9910591.thcon(e,tp,eg,ep,ev,re,r,rp) function c9910591.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end end
......
...@@ -29,7 +29,8 @@ function c9910937.chainfilter(re,tp,cid) ...@@ -29,7 +29,8 @@ function c9910937.chainfilter(re,tp,cid)
return not re:IsActiveType(TYPE_TRAP) return not re:IsActiveType(TYPE_TRAP)
end end
function c9910937.spcon(e,tp,eg,ep,ev,re,r,rp) function c9910937.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>1 local chain=Duel.GetCurrentChain()
return chain>1 or (Duel.GetFlagEffect(tp,9920937)~=0 and chain>0)
end end
function c9910937.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c9910937.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -30,7 +30,8 @@ function c9910939.chainfilter(re,tp,cid) ...@@ -30,7 +30,8 @@ function c9910939.chainfilter(re,tp,cid)
return not re:IsActiveType(TYPE_TRAP) return not re:IsActiveType(TYPE_TRAP)
end end
function c9910939.spcon(e,tp,eg,ep,ev,re,r,rp) function c9910939.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>1 local chain=Duel.GetCurrentChain()
return chain>1 or (Duel.GetFlagEffect(tp,9920939)~=0 and chain>0)
end end
function c9910939.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c9910939.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -4,16 +4,16 @@ function c9910943.initial_effect(c) ...@@ -4,16 +4,16 @@ function c9910943.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddLinkProcedure(c,nil,2,3,c9910943.lcheck) aux.AddLinkProcedure(c,nil,2,3,c9910943.lcheck)
--destroy --destroy
local e2=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY) e1:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,9910943) e1:SetCountLimit(1,9910943)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetTarget(c9910943.tgtg) e1:SetTarget(c9910943.tgtg)
e2:SetOperation(c9910943.tgop) e1:SetOperation(c9910943.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e1)
--to hand --to hand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_ACTION+CATEGORY_GRAVE_SPSUMMON) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_ACTION+CATEGORY_GRAVE_SPSUMMON)
......
...@@ -29,7 +29,8 @@ function c9910945.chainfilter(re,tp,cid) ...@@ -29,7 +29,8 @@ function c9910945.chainfilter(re,tp,cid)
return not re:IsActiveType(TYPE_TRAP) return not re:IsActiveType(TYPE_TRAP)
end end
function c9910945.spcon(e,tp,eg,ep,ev,re,r,rp) function c9910945.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>1 local chain=Duel.GetCurrentChain()
return chain>1 or (Duel.GetFlagEffect(tp,9920945)~=0 and chain>0)
end end
function c9910945.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c9910945.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>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