Commit f4672953 authored by Tachibana's avatar Tachibana

ybb

parent ca7a7454
Pipeline #9323 passed with stages
in 27 minutes and 41 seconds
......@@ -31,8 +31,8 @@ function c16400101.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,16400101)
e3:SetCondition(c16400101.thcon)
e3:SetTarget(c16400101.thtg)
e3:SetOperation(c16400101.thop)
e3:SetTarget(c16400101.thtg2)
e3:SetOperation(c16400101.thop2)
c:RegisterEffect(e3)
end
function c16400101.indct(e,re,r,rp)
......@@ -40,16 +40,16 @@ function c16400101.indct(e,re,r,rp)
return 1
else return 0 end
end
function c16400101.thfilter(c)
function c16400101.thfilter0(c)
return (c:IsType(TYPE_MONSTER) or c:GetOriginalType()&TYPE_MONSTER~=0) and c:IsAbleToHand()
end
function c16400101.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16400101.thfilter,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(c16400101.thfilter,tp,0,LOCATION_ONFIELD,nil)
if chk==0 then return Duel.IsExistingMatchingCard(c16400101.thfilter0,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(c16400101.thfilter0,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
end
function c16400101.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c16400101.thfilter,tp,0,LOCATION_ONFIELD,nil)
local g=Duel.GetMatchingGroup(c16400101.thfilter0,tp,0,LOCATION_ONFIELD,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
......@@ -64,11 +64,11 @@ end
function c16400101.thfilter2(c)
return c:GetType()&TYPE_RITUAL+TYPE_SPELL==TYPE_RITUAL+TYPE_SPELL and c:IsAbleToHand()
end
function c16400101.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
function c16400101.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16400101.thfilter,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c16400101.thop(e,tp,eg,ep,ev,re,r,rp)
function c16400101.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local hg=Duel.SelectMatchingCard(tp,c16400101.thfilter,tp,LOCATION_DECK,0,1,1,nil,tp)
if hg:GetCount()>0 then
......
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