Commit f45e42d1 authored by TanakaKotoha's avatar TanakaKotoha

fix、

parent dfc88a57
......@@ -46,7 +46,7 @@ function c26800012.cfilter(c)
end
function c26800012.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and c26800012.thfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c26800012.thfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
if chk==0 then return Duel.IsExistingTarget(c26800012.thfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) and Duel.IsExistingMatchingCard(c26800012.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end
local cg=Duel.GetMatchingGroup(c26800012.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil)
local ct=cg:GetCount()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
......@@ -37,9 +37,16 @@ function cm.disop(e,tp)
end
end
function cm.skipcon(e,tp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 and rscon.excard2(rscf.CheckSetCard,LOCATION_MZONE,0,1,nil,"Cochrot")
return Duel.GetCurrentPhase()==PHASE_MAIN1 and rscon.excard2(rscf.CheckSetCard,LOCATION_MZONE,0,1,nil,"Cochrot")(e,tp)
end
function cm.skipop(e,tp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_CHAIN_END)
e1:SetOperation(cm.skipop2)
Duel.RegisterEffect(e1,tp)
end
function cm.skipop2(e,tp)
local p=Duel.GetTurnPlayer()
Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE+PHASE_END,1)
local e2=Effect.CreateEffect(e:GetHandler())
......@@ -49,4 +56,5 @@ function cm.skipop(e,tp)
e2:SetTargetRange(1,0)
e2:SetReset(RESET_PHASE+PHASE_MAIN1)
Duel.RegisterEffect(e2,p)
e:Reset()
end
\ No newline at end of file
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