Commit 3c6479af authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 0afc0f1a
...@@ -43,7 +43,7 @@ function cm.initial_effect(c) ...@@ -43,7 +43,7 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCondition(cm.searcon) e2:SetCondition(cm.searcon)
e2:SetCountLimit(1,m) e2:SetCountLimit(1,m)
e2:SetTarget(cm.target) e2:SetTarget(cm.target1)
e2:SetOperation(cm.operation) e2:SetOperation(cm.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e5=e2:Clone() local e5=e2:Clone()
...@@ -98,7 +98,7 @@ end ...@@ -98,7 +98,7 @@ end
function cm.filter(c) function cm.filter(c)
return c:IsSetCard(0x234) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x234) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end 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 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) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -96,7 +96,7 @@ local ss=Duel.GetFlagEffect(tp,33403501) ...@@ -96,7 +96,7 @@ local ss=Duel.GetFlagEffect(tp,33403501)
sx=sx+1 sx=sx+1
ss=ss+1 ss=ss+1
end 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 end
function XY.REstfilter(c,m) function XY.REstfilter(c,m)
return c:IsSetCard(0x5349) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() and not c:IsCode(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