Commit 3c6479af authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 0afc0f1a
......@@ -43,7 +43,7 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_SZONE)
e2:SetCondition(cm.searcon)
e2:SetCountLimit(1,m)
e2:SetTarget(cm.target)
e2:SetTarget(cm.target1)
e2:SetOperation(cm.operation)
c:RegisterEffect(e2)
local e5=e2:Clone()
......@@ -98,7 +98,7 @@ end
function cm.filter(c)
return c:IsSetCard(0x234) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
......@@ -42,7 +42,7 @@ end
if not XY.zs then
XY.zs=true
local ge1=Effect.GlobalEffect(c)
ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ge1:SetCode(EVENT_SPSUMMON_SUCCESS)
ge1:SetCondition(XY.zscon1)
ge1:SetOperation(XY.zsop1)
......@@ -56,10 +56,10 @@ function XY.zsckfilter1(c,rp,re)
return c:GetSummonPlayer()==rp and not c:IsCode(33403500) and (re and not re:GetHandler():IsSetCard(0x5349))
end
function XY.zscon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(XY.zsfilter1,1,nil,rp)
return eg:IsExists(XY.zsfilter1,1,nil,rp)
end
function XY.zsop1(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(XY.zsckfilter1,1,nil,rp,re) then
if eg:IsExists(XY.zsckfilter1,1,nil,rp,re) then
Duel.RegisterFlagEffect(rp,33443500,RESET_PHASE+PHASE_END,0,1)
end
end
......@@ -96,7 +96,7 @@ local ss=Duel.GetFlagEffect(tp,33403501)
sx=sx+1
ss=ss+1
end
return Duel.GetFlagEffect(tp,33413501)<sx and Duel.GetFlagEffect(tp,c:GetCode()+20000)==0
return Duel.GetFlagEffect(tp,33413501)<sx and Duel.GetFlagEffect(tp,c:GetCode()+20000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end
function XY.REstfilter(c,m)
return c:IsSetCard(0x5349) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() and not c:IsCode(m)
......
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