Commit a8a73ae6 authored by Tachibana's avatar Tachibana

ndyd

parent c61eb602
Pipeline #5147 passed with stages
in 27 minutes and 28 seconds
......@@ -102,7 +102,8 @@ function c85400100.gg(e,tp,eg,ep,ev,re,r,rp)
e1:SetCategory(CATEGORY_SEARCH)
e1:SetCountLimit(1,85400300)
e1:SetCondition(c85400100.dd)
e1:SetTarget(c85400100.aa)
e1:SetTarget(c85400100.aa)
e1:SetOperation(c85400100.oiiu)
token:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
......@@ -151,9 +152,12 @@ end
function c85400100.aa(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_DECK) and c85400100.ggggg(chk) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(c85400100.ggggg,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SEARCH,g,1,0,0)
end
function c85400100.oiiu(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c85400100.ggggg,tp,LOCATION_DECK,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SEARCH,g,1,0,0)
Duel.SSet(tp,g)
end
function c85400100.po(e,tp,eg,ep,ev,re,r,rp,chk)
......
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